utils

package
v0.0.0-...-cc5316a Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(item any) string

func InitLogger

func InitLogger()

func Logger

func Logger() *zap.Logger

func Min

func Min[T constraints.Ordered](a T, b T) T

Types

type IdFactory

type IdFactory interface {
	Generate() vertex.Id
}

type SimpleIdFactory

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

func NewSimpleIdFactory

func NewSimpleIdFactory() *SimpleIdFactory

func (*SimpleIdFactory) Generate

func (f *SimpleIdFactory) Generate() vertex.Id

Jump to

Keyboard shortcuts

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