util

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpClient = http.Client{Timeout: time.Duration(1) * time.Second}

TODO: Remove global variable

Functions

func IncludePaths

func IncludePaths() []string

IncludePaths will return the search path for non-absolute import file

func LoadExternalResource added in v2.3.0

func LoadExternalResource(url string) (b []byte, err error)

func SetIncludePaths

func SetIncludePaths(paths []string)

SetIncludePaths will update the search path for non-absolute import file

func UnmarshalObject

func UnmarshalObject[U any](parameterName string, data []byte, value *U) error

func UnmarshalObjectOrFile

func UnmarshalObjectOrFile[U any](parameterName string, data []byte, valObject *U) error

+k8s:deepcopy-gen=false

func UnmarshalPrimitiveOrObject

func UnmarshalPrimitiveOrObject[T string | bool, U any](parameterName string, data []byte, valPrimitive *T, valStruct *U) error

func WebAssembly

func WebAssembly() bool

Types

type Kind

type Kind interface {
	KindValues() []string
	String() string
}

Kind ... +k8s:deepcopy-gen=false

type UnmarshalError

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

UnmarshalError ... +k8s:deepcopy-gen=false

func (*UnmarshalError) Error

func (e *UnmarshalError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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