common

package
v0.0.0-...-55c251c Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateTime

type DateTime int64

type StopwatchTime

type StopwatchTime int64

type TimeSpan

type TimeSpan int64
const (
	TimeSpanMax TimeSpan = math.MaxInt64
)

func TimeSpanFromDuration

func TimeSpanFromDuration(d time.Duration) TimeSpan

func (TimeSpan) ToDuration

func (s TimeSpan) ToDuration() time.Duration

type Uri

type Uri struct {
	Type         UriType
	Scheme       string
	Authority    string
	HostType     UriHostType
	Host         string
	Port         int32
	Path         string
	Query        string
	Fragment     string
	PathSegments []string
}

type UriHostType

type UriHostType int64
const (
	UriHostTypeNone UriHostType = iota
	UriHostTypeIPv4
	UriHostTypeIPv6
	UriHostTypeRegName
)

type UriType

type UriType int64
const (
	UriTypeAuthorityAbEmpty UriType = iota
	UriTypeAbsolute
	UriTypeRootless
	UriTypeEmpty
)

Jump to

Keyboard shortcuts

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