array

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array added in v0.8.0

type Array interface {
	Implode(separator string) string
	Length() int
}

Array interface

type IntSlice added in v0.8.0

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

IntSlice

func Int added in v0.8.0

func Int(items []int) *IntSlice

Int return IntSlice

func (IntSlice) Implode added in v0.8.0

func (s IntSlice) Implode(separator string) string

Implode

func (IntSlice) Length added in v0.8.0

func (s IntSlice) Length() int

Length return len of slice

func (*IntSlice) Push added in v0.8.0

func (s *IntSlice) Push(item int)

Push add item

func (IntSlice) ToString added in v0.8.0

func (s IntSlice) ToString() []string

ToString return string slice

func (IntSlice) Unique added in v0.8.0

func (s IntSlice) Unique() []int

Unique return unique elem slice

type StringSlice added in v0.8.0

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

StringSlice

func String added in v0.8.0

func String(items []string) StringSlice

Int return IntSlice

func (StringSlice) Implode added in v0.8.0

func (s StringSlice) Implode(separator string) string

Implode

func (StringSlice) Length added in v0.8.0

func (s StringSlice) Length() int

Length

func (*StringSlice) Push added in v0.8.0

func (s *StringSlice) Push(item string)

Push

func (StringSlice) ToInt added in v0.8.0

func (s StringSlice) ToInt() []int

ToString return string slice

func (StringSlice) Unique added in v0.8.0

func (s StringSlice) Unique() []string

Unique return unique elem slice

Jump to

Keyboard shortcuts

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