package
module
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Jun 27, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
interside
Generalized slice container data structure implementation.
Installation
go get -u github.com/coolstina/interside
Documentation
¶
func NewContainer() *container
type Container interface {
Append(value ...interface{}) Container
Length() int
IntSlice() []int
UintSlice() []uint
Int32Slice() []int32
Int64Slice() []int64
StringSlice() []string
InterfaceSlice() []interface{}
}
Map container structure definition.
NewMap returns a new Map container instance.
func (custom *Map) Append(key string, value interface{}) *Map
Append appends key value pair into Map instance.
func (custom *Map) ToMap() map[string]interface{}
ToMap returns Map container value map[string]interface{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.