typeutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntToBool

func IntToBool[T constraints.Signed](a T) bool

func Keys

func Keys[K comparable, V any](m map[K]V) []K

Keys returns a slice of the keys of the map. based with go 1.18 generics

func Reverse

func Reverse[T any](s []T) []T

func TimeEpoch

func TimeEpoch(epoch int64) time.Time

func TimeStamp

func TimeStamp(stamp int64) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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