Documentation ¶
Index ¶
- Variables
- func ParseDuration(s string) (time.Duration, error)
- func ReadFile(fs embed.FS, s string) string
- type TBool
- type TDuration
- type TFileMode
- type TFloat64
- type TGroup
- type TInt
- type TInt64
- type TList
- type TListLowercase
- type TSet
- type TShlex
- type TSize
- type TString
- type TTristate
- type TUmask
- type TUser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( String TString Int TInt Int64 TInt64 Float64 TFloat64 Bool TBool List TList ListLowercase TListLowercase Set TSet Shlex TShlex Duration TDuration Umask TUmask Size TSize FileMode TFileMode Tristate TTristate )
View Source
var ( User TUser Group TGroup )
Functions ¶
func ParseDuration ¶
ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Types ¶
type TDuration ¶
type TDuration string
type TListLowercase ¶
type TListLowercase string
func (TListLowercase) Convert ¶
func (t TListLowercase) Convert(s string) (interface{}, error)
func (TListLowercase) String ¶
func (t TListLowercase) String() string
Click to show internal directories.
Click to hide internal directories.