expr

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: BSD-3-Clause Imports: 13 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandGlobals

func ExpandGlobals() expander.Interface

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 ExpandURL

func ExpandURL(u *url.URL) expander.Interface

ExpandURL provides an expander for url.URL

func ExpandURLValues added in v0.10.0

func ExpandURLValues(v url.Values) expander.Interface

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) Code

func (s HTTPStatus) Code() int

Code converts the value into a value

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL