Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeSHA256 ¶
func PrintDaily ¶
func PrintDaily()
Types ¶
type Request ¶
type Request struct { Q string `json:"q"` From string `json:"from"` To string `json:"to"` AppKey string `json:"appKey"` Salt string `json:"salt"` Sign string `json:"sign"` SignType string `json:"signType"` CurTime int64 `json:"curtime"` }
func NewRequest ¶
type Response ¶
type Response struct { ErrorCode string `json:"errorCode"` Query string `json:"query"` Translation []string `json:"translation"` Basic string `json:"basic"` Web []web `json:"web"` }
func (*Response) PrintQuery ¶
func (r *Response) PrintQuery()
func (*Response) PrintTranslate ¶
func (r *Response) PrintTranslate()
Click to show internal directories.
Click to hide internal directories.