utils

package
v0.0.0-...-33e8507 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBoolToOnOff

func ConvertBoolToOnOff(value bool) string

func ConvertOnOffToInt

func ConvertOnOffToInt(value string) int

func Decode

func Decode[T any](bytes []byte) (T, error)

func Max

func Max(a, b float64) float64

func Min

func Min(a, b float64) float64

Min returns the minimum of two float64 numbers

Types

type Validator

type Validator interface {
	Valid(ctx context.Context) (problems map[string]string)
}

Jump to

Keyboard shortcuts

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