kk_sync

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

func NewError

func NewError() *Error

func (*Error) Error

func (ce *Error) Error() error

func (*Error) ErrorStr

func (ce *Error) ErrorStr() string

func (*Error) Join

func (ce *Error) Join(err error)

type Map

type Map[keyT comparable, dataT any] struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap[keyT comparable, dataT any]() *Map[keyT, dataT]

func (*Map[keyT, dataT]) Add

func (x *Map[keyT, dataT]) Add(key keyT, value dataT)

func (*Map[keyT, dataT]) AddExistPanic

func (x *Map[keyT, dataT]) AddExistPanic(key keyT, value dataT)

func (*Map[keyT, dataT]) Clear

func (x *Map[keyT, dataT]) Clear()

func (*Map[keyT, dataT]) Copy

func (x *Map[keyT, dataT]) Copy() *Map[keyT, dataT]

func (*Map[keyT, dataT]) Data

func (x *Map[keyT, dataT]) Data() map[keyT]dataT

func (*Map[keyT, dataT]) Get

func (x *Map[keyT, dataT]) Get(key keyT) (dataT, bool)

func (*Map[keyT, dataT]) Len

func (x *Map[keyT, dataT]) Len() int

func (*Map[keyT, dataT]) Remove

func (x *Map[keyT, dataT]) Remove(key keyT)

type Slice

type Slice[T any] struct {
	// contains filtered or unexported fields
}

func NewSlice

func NewSlice[T any]() *Slice[T]

func (*Slice[T]) Append

func (s *Slice[T]) Append(elems ...T)

func (*Slice[T]) Copy

func (s *Slice[T]) Copy() *Slice[T]

func (*Slice[T]) Len

func (s *Slice[T]) Len() int

func (*Slice[T]) Slice

func (s *Slice[T]) Slice() []T

Jump to

Keyboard shortcuts

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