Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandGlobals ¶
ExpandGlobals provides an exander for global variables:
- go.version
- wig.version
- time, time.now, time.now.utc (and what expander.Time provides)
- random (or random.int)
- random.float
- random.uuid (or random.uuidv4)
- random.uuidv7
func ExpandURLValues ¶ added in v0.10.0
ExpandURLValues provides an expander for url.Values
Types ¶
type HTTPMethod ¶
type HTTPMethod string
HTTPMethod provides a representation of an HTTP method that supports terminal formatting
func (HTTPMethod) Color ¶
func (m HTTPMethod) Color() string
Color gets the color string that applies to the method
func (HTTPMethod) Format ¶
func (m HTTPMethod) Format(f fmt.State, verb rune)
Format implements fmt.Formatter
func (HTTPMethod) String ¶
func (m HTTPMethod) String() string
String provides the string representation of the method
type HTTPStatus ¶
type HTTPStatus int
HTTPStatus provides a representation of an HTTP status code that supports terminal formatting
func (HTTPStatus) Color ¶
func (s HTTPStatus) Color() string
Color gets the color string that applies to the status
func (HTTPStatus) Format ¶
func (s HTTPStatus) Format(f fmt.State, verb rune)
Format implements fmt.Formatter
func (HTTPStatus) Message ¶
func (s HTTPStatus) Message() string
Message converts the status in to the canonical status text message
func (HTTPStatus) String ¶
func (s HTTPStatus) String() string
String provides the string representation of the status