common

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToFloat

func BytesToFloat(i []byte) float64

func BytesToInt

func BytesToInt(i []byte) int64

func CopyMap

func CopyMap[T Hashable, Q any](m map[T]Q) map[T]Q

func FloatToBytes

func FloatToBytes[T float](f T) []byte

func IntToBytes

func IntToBytes[T integer](i T) []byte

Types

type Hashable

type Hashable interface {
	string | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64
}

type ListStack

type ListStack[T any] struct {
	Top *stackNode
}

func (*ListStack[T]) HasNext

func (s *ListStack[T]) HasNext() bool

func (*ListStack[T]) Peek

func (s *ListStack[T]) Peek() T

func (*ListStack[T]) Pop

func (s *ListStack[T]) Pop() T

func (*ListStack[T]) Push

func (s *ListStack[T]) Push(value T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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