Documentation ¶ Index ¶ Variables func SetupSetting() error type CrawlerSettingS type Setting func NewSetting(configs ...string) (*Setting, error) func (s *Setting) ReadSection(k string, v interface{}) error Constants ¶ This section is empty. Variables ¶ View Source var WantedTagsSet = make(map[string]bool) Functions ¶ func SetupSetting ¶ func SetupSetting() error Types ¶ type CrawlerSettingS ¶ type CrawlerSettingS struct { PageStart int PageEnd int ProxyHost string EnableProxy bool TagConsumerCount int HonConsumerCount int HonBuffer int TagBuffer int EnableFilter bool WantedTags []string } add config struct var CrawlerSetting *CrawlerSettingS type Setting ¶ type Setting struct { // contains filtered or unexported fields } general operation for Viper func NewSetting ¶ func NewSetting(configs ...string) (*Setting, error) func (*Setting) ReadSection ¶ func (s *Setting) ReadSection(k string, v interface{}) error Source Files ¶ View all Source files settings.go Click to show internal directories. Click to hide internal directories.