Documentation ¶
Index ¶
- func StrToInt(s string, def ...int) int
- func StrToInt64(s string, def ...int64) int64
- func TryMkdir(path string) bool
- type LocalTime
- type ServerConf
- type ZapInfo
- type ZapMap
- func (z ZapMap) Get(key string) (any, bool)
- func (z ZapMap) GetAny(key string) any
- func (z ZapMap) GetBool(key string) bool
- func (z ZapMap) GetFloat64(key string) float64
- func (z ZapMap) GetInt(key string) int
- func (z ZapMap) GetInt64(key string) int64
- func (z ZapMap) GetString(key string, def ...string) string
- func (z ZapMap) GetZapMap(key string) ZapMap
- func (z ZapMap) Len() int
- func (z ZapMap) Set(key string, value any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrToInt64 ¶
Types ¶
type LocalTime ¶
func (*LocalTime) MarshalJSON ¶
type ServerConf ¶
type ServerConf struct { SigningKey string EncryptKey string Host string Port int IPv6 bool CertFile string KeyFile string // 用户主目录 WwwRoot string WwwUser string WwwGroup string WwwUserId int WwwGroupId int ZapMode string WebServer string }
func (*ServerConf) GetUserHomeDir ¶
func (s *ServerConf) GetUserHomeDir(username string) string
type ZapMap ¶
func (ZapMap) GetFloat64 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.