Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
integrii authored Oct 28, 2019
1 parent da2c9fa commit 77dd075
Showing 1 changed file with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,42 +153,24 @@ print(flaggy.TrailingArguments[0])

# Supported Flag Types

- string
- []string
- bool
- []bool
- time.Duration
- []time.Duration
- float32
- []float32
- float64
- []float64
- uint
- uint64
- []uint64
- uint32
- []uint32
- uint16
- []uint16
- uint8
- []uint8
- []byte
- int
- []int
- int64
- []int64
- int32
- []int32
- int16
- []int16
- int8
- []int8
Flaggy has specific functions for all basic types included in go as well as slice of those types. This includes:

- string and []string
- bool and []bool
- all float types and all []float types
- all uint types and all []uint types
- all int types and all []int types

Other more specific types can also be used as flag types. They will be automatically parsed using the standard parsing functions included with those types in those packages. This includes:

- net.IP
- []net.IP
- net.HardwareAddr
- []net.HardwareAddr
- net.IPMask
- []net.IPMask
- time.Duration
- []time.Duration

# Recommended Program Structure

Expand Down

0 comments on commit 77dd075

Please sign in to comment.