Versions in this module Expand all Collapse all v1 v1.0.0 Jan 16, 2022 Changes in this version + type AppSettingS struct + DefaultContextTimeout time.Duration + DefaultPageSize int + HashSalt string + LogFileExt string + LogFileName string + LogSavePath string + MaxPageSize int + UploadImageAllowExts []string + UploadImageMaxSize int + UploadSavePath string + UploadServerUrl string + type CacheSettingS struct + DBIndex int + Host string + type ClientSettingS struct + ConnNum int + RPCHost string + type DatabaseSettingS struct + Charset string + DBName string + DBType string + Host string + MaxIdleConns int + MaxOpenConns int + ParseTime bool + Password string + TablePrefix string + UserName string + type EmailSettingS struct + From string + Host string + IsSSL bool + Password string + Port int + To []string + UserName string + type ServerSettingS struct + HttpPort string + RPCPort string + ReadTimeout time.Duration + RunMode string + WriteTimeout time.Duration + type Setting struct + func NewSetting(configs ...string) (*Setting, error) + func (s *Setting) ReadSection(k string, v interface{}) error