utils

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NDNdVersion string = "unknown"

NDNd version from source control Note: this is only defined in NDNd itself, not for other projects.

Functions

func ConvIntPtr

func ConvIntPtr[A, B constraints.Integer](a *A) *B

ConvIntPtr converts an integer pointer to another type

func ConvertNonce

func ConvertNonce(nonce []byte) *uint64

func IdPtr

func IdPtr[T any](value T) *T

IdPtr is the pointer version of id: 'a->'a

func MakeTimestamp

func MakeTimestamp(t time.Time) uint64

func SetTestingT

func SetTestingT(t *testing.T)

func WithErr

func WithErr[T any](_ T, err error) error

func WithoutErr

func WithoutErr[T any](v T, err error) T

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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