goshindan

package module
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 6 Imported by: 0

README

goshindan

Travis Coveralls GoDoc Go Report Card

Goから診断メーカー( https://shindanmaker.com )へのアクセスをする

asciicast

診断メーカー用ライブラリ

GoDocを見てください。

GoDoc

コマンド

shindan

診断メーカーでの診断を行い、結果を印字する。用例:

% goshindan shindan -s 509717 -u kakakaya --append-url

  • --shindan-id / -s 診断メーカーのID。もし https://shindanmaker.com/509717 を使って診断を行いたい場合、509717を指定する。
  • --username / -u ユーザー名(「診断したい名前を入れて下さい」の部分)。
  • --append-url / --add-url 診断メーカーのURLを末尾に付加して出力する。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shindan

func Shindan(shindanID int, userName string) (string, error)

Shindan executes Shindan for given shindanID and returns result.

Types

type ShindanInfo

type ShindanInfo struct {
	Title        string
	Description  string
	URL          string
	ShindanTimes int // Times this shindan was shindaned.
	Pattern      int // Patterns for shindan result.
	Star         int
	Author       string
	AuthorPage   string
	Keywords     []string
}

ShindanInfo is a struct to describe shindan.

func GetShindanInfo

func GetShindanInfo(shindanID int) (ShindanInfo, error)

GetShindanInfo fetches Shindanmaker's information for given shindanID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL