The documentation of an exported type should start with the type’s name GO-D5002
Documentation
Minor
2 months agoa year old
comment on exported type DingtalkPayload should be of the form "DingtalkPayload ..." (with optional leading article)
 35	IsAtAll   bool     `json:"isAtAll"`
 36}
 37
 38// Refer: https://open-doc.dingtalk.com/docs/doc.htm?treeId=257&articleId=105735&docType=1 39type DingtalkPayload struct {
 40	MsgType    string             `json:"msgtype"`
 41	At         DingtalkAtObject   `json:"at"`
comment on exported type DingtalkAtObject should be of the form "DingtalkAtObject ..." (with optional leading article)
 29	SingleURL      string `json:"singleURL"`
 30}
 31
 32// Refer: https://open-doc.dingtalk.com/docs/doc.htm?treeId=257&articleId=105735&docType=1 33type DingtalkAtObject struct {
 34	AtMobiles []string `json:"atMobiles"`
 35	IsAtAll   bool     `json:"isAtAll"`
comment on exported type DingtalkActionCard should be of the form "DingtalkActionCard ..." (with optional leading article)
 19	DingtalkNotificationTitle = "Gogs Notification"
 20)
 21
 22// Refer: https://open-doc.dingtalk.com/docs/doc.htm?treeId=257&articleId=105735&docType=1 23type DingtalkActionCard struct {
 24	Title          string `json:"title"`
 25	Text           string `json:"text"`
comment on exported type Request should be of the form "Request ..." (with optional leading article)
101	EnableCookie     bool
102}
103
104// HttpRequest provides more useful methods for requesting one url than http.Request.105type Request struct {
106	url     string
107	req     *http.Request