Documentation
¶
Index ¶
- Constants
- type Result
- type Worker
- func (w *Worker) ParseParagraphs(paragraphs []string) (res Result, err error)
- func (w *Worker) PickPolicyDocumentUrl() (policyUrl string, err error)
- func (w *Worker) QueryCache() (res Result, ok bool)
- func (w *Worker) SearchPolicyDocument(policyUrl string) (paragraphs []string, err error)
- func (w *Worker) SetPickPolicyDocumentUrlFunc(f func(year int) (policyUrl string, err error))
- func (w *Worker) SetYear(year int) (err error)
Constants ¶
View Source
const SearchApi = "https://sousuo.www.gov.cn/search-gov/data"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) PickPolicyDocumentUrl ¶
PickPolicyDocumentUrl 节假日政策公文Url获取
func (*Worker) SetPickPolicyDocumentUrlFunc ¶
SetPickPolicyDocumentUrlFunc 设置节假日政策公文Url获取的函数
注: 因政策查询api接口可能变化、所以留出可自定义的设置
Click to show internal directories.
Click to hide internal directories.