interside

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

interside

Generalized slice container data structure implementation.

Installation

go get -u github.com/coolstina/interside

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainer

func NewContainer() *container

Types

type Container

type Container interface {
	Append(value ...interface{}) Container
	Length() int
	IntSlice() []int
	UintSlice() []uint
	Int32Slice() []int32
	Int64Slice() []int64
	StringSlice() []string
	InterfaceSlice() []interface{}
}

type Map added in v1.2.0

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

Map container structure definition.

func NewMap added in v1.2.0

func NewMap() *Map

NewMap returns a new Map container instance.

func (*Map) Append added in v1.2.0

func (custom *Map) Append(key string, value interface{}) *Map

Append appends key value pair into Map instance.

func (*Map) ToMap added in v1.2.0

func (custom *Map) ToMap() map[string]interface{}

ToMap returns Map container value map[string]interface{}

Jump to

Keyboard shortcuts

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