race

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

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

func NewValue

func NewValue(value interface{}) *Value

func (*Value) Array

func (s *Value) Array() []interface{}

* * Array: Get value as []interface{} * @return []interface{} *

func (*Value) ArrayRange

func (s *Value) ArrayRange(f func(key, value interface{}) bool)

* * MapRange: Iterate over map * @param func (key, value interface{}) bool *

func (*Value) Bool

func (s *Value) Bool() bool

* * Bool: Get value as bool * @return bool *

func (*Value) Delete

func (s *Value) Delete()

* * Delete: Delete value *

func (*Value) Float64

func (s *Value) Float64() float64

* * Float64: Get value as float64 * @return float64 *

func (*Value) Float64Array

func (s *Value) Float64Array() []float64

* * Float64Array: Get value as []float64 * @return []float64 *

func (*Value) Get

func (s *Value) Get() interface{}

* * Get: Get value * @return interface{} *

func (*Value) Increase

func (s *Value) Increase(n int)

func (*Value) Int

func (s *Value) Int() int

* * Int: Get value as int * @return int *

func (*Value) IntArray

func (s *Value) IntArray() []int

* * IntArray: Get value as []int * @return []int *

func (*Value) IsNil

func (s *Value) IsNil() bool

* * BoolArray: Get value as []bool * @return []bool *

func (*Value) Map

func (s *Value) Map() map[string]interface{}

* * Map: Get value as map[string]interface{} * @return map[string]interface{} *

func (*Value) MapRange

func (s *Value) MapRange(f func(key, value interface{}) bool)

* * IsNil: Check if value is nil * @return bool *

func (*Value) Range

func (s *Value) Range(f func(key, value interface{}) bool)

* * ArrayRange: Iterate over array * @param func (key, value interface{}) bool *

func (*Value) Set

func (s *Value) Set(value interface{})

* * Set: New value * @param interface{} *

func (*Value) String

func (s *Value) String() string

* * String: Get value as string * @return string *

func (*Value) StringArray

func (s *Value) StringArray() []string

* * StringArray: Get value as []string * @return []string *

func (*Value) Time

func (s *Value) Time() time.Time

* * Time: Get value as time.Time * @return time.Time *

Jump to

Keyboard shortcuts

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