Documentation
¶
Index ¶
- func Add(value interface{})
- func Get(index int) interface{}
- func GetFloat64(index int) float64
- func GetInt(index int) int
- func GetString(index int) string
- func Index(value interface{}) int
- func Len() int
- func RemoveFast(index int)
- func RemoveFastByValue(value interface{}) error
- func RemoveSlow(index int)
- type Array
- func (a *Array) Add(value interface{})
- func (a *Array) Get(index int) interface{}
- func (a *Array) GetFloat64(index int) float64
- func (a *Array) GetInt(index int) int
- func (a *Array) GetString(index int) string
- func (a *Array) Index(value interface{}) int
- func (a *Array) Len() int
- func (a *Array) RemoveFast(index int)
- func (a *Array) RemoveFastByValue(value interface{}) error
- func (a *Array) RemoveSlow(index int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64 ¶
func RemoveFastByValue ¶
func RemoveFastByValue(value interface{}) error
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func (*Array) GetFloat64 ¶
func (*Array) RemoveFast ¶
此移除方法会改变数据的顺序,如对顺序有要求,请使用RemoveSlow
func (*Array) RemoveFastByValue ¶
Click to show internal directories.
Click to hide internal directories.