RobolabGs2 / flagconfig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flagconfig

WARNING: this package unstable and developing slowly.

Supported Struct Field Types

flagconfig supports these struct field types:

  • string
  • uint, uint64
  • uint8, uint16, uint32
  • int, int64
  • int8, int16, int32
  • bool
  • float64
  • slices of any supported type
  • maps (keys and values of any supported type)
  • encoding.TextUnmarshaler
  • encoding.BinaryUnmarshaler
  • time.Duration
  • embedded structs using these fields
  • flag.Value

Inspired by envconfig

About


Languages

Language:Go 100.0%