Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GreenText ¶
func GreenText(conf GreenTextConf) (bool, error)
func RequestApi ¶
func RequestApi(conf AliyunApiRequestConf) ([]byte, error)
Types ¶
type AliyunApiRequestConf ¶
type GreenTextConf ¶
type GreenTextResponse ¶
type GreenTextResponse struct {
Code int `json:"code"`
Data []struct {
Code int `json:"code"`
Content string `json:"content"`
DataID string `json:"dataId"`
Msg string `json:"msg"`
Results []struct {
Details []struct {
Contexts []struct {
Context string `json:"context"`
} `json:"contexts"`
Label string `json:"label"`
} `json:"details"`
Label string `json:"label"`
Rate float64 `json:"rate"`
Scene string `json:"scene"`
Suggestion string `json:"suggestion"`
} `json:"results"`
TaskID string `json:"taskId"`
} `json:"data"`
Msg string `json:"msg"`
RequestID string `json:"requestId"`
}
Click to show internal directories.
Click to hide internal directories.