utils

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	Key   string
	Value string
}

type State

type State []Param

func DecodeState

func DecodeState(s string) State

func NewState

func NewState(params ...Param) State

func (State) Encode

func (s State) Encode() string

func (State) Extend

func (s State) Extend(key, value string) State

func (State) Get

func (s State) Get(key string) string

func (State) Has

func (s State) Has(key string) bool

func (State) Len

func (s State) Len() int

func (State) Less

func (s State) Less(i, j int) bool

func (State) Swap

func (s State) Swap(i, j int)

Jump to

Keyboard shortcuts

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