referrable

package
v0.0.0-...-afd21db Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any interface{}

Any type

type Referrable

type Referrable struct {
	// contains filtered or unexported fields
}

Referrable is referrable items

func NewReferrable

func NewReferrable(resp *response.Response) *Referrable

NewReferrable creates an referrable object

func (*Referrable) Find

func (a *Referrable) Find(k string) ([]string, bool)

Find to find a value of given key

func (*Referrable) FindBoolean

func (a *Referrable) FindBoolean(k string) (bool, bool)

FindBoolean to find a value of given key and treat it as boolean. If the value is non-boolean, error will be raised. All header stuffs will be treated as non-boolean.

func (*Referrable) FindNull

func (a *Referrable) FindNull(k string) (bool, bool)

FindNull to find a value of given key and treat it as null. If the value is not-null, error will be raised.

Jump to

Keyboard shortcuts

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