internal

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = version.Version("1.2.0", "$Format:%(describe)$", "$Format:%H$")

Version contains version and Git commit information.

The placeholders are replaced on `git archive` using the `export-subst` attribute.

Functions

func CantDecodeHex

func CantDecodeHex(err error, s string) error

CantDecodeHex wraps the given error with the given string that cannot be hex-decoded.

func CantParseFloat64

func CantParseFloat64(err error, s string) error

CantParseFloat64 wraps the given error with the specified string that cannot be parsed into float64.

func CantParseInt64

func CantParseInt64(err error, s string) error

CantParseInt64 wraps the given error with the specified string that cannot be parsed into int64.

func CantParseUint64

func CantParseUint64(err error, s string) error

CantParseUint64 wraps the given error with the specified string that cannot be parsed into uint64.

func CantPerformQuery

func CantPerformQuery(err error, q string) error

CantPerformQuery wraps the given error with the specified query that cannot be executed.

func CantUnmarshalYAML

func CantUnmarshalYAML(err error, v interface{}) error

CantUnmarshalYAML wraps the given error with the designated value, which cannot be unmarshalled into.

func MarshalJSON

func MarshalJSON(v interface{}) ([]byte, error)

MarshalJSON calls json.Marshal and wraps any resulting errors.

func UnmarshalJSON

func UnmarshalJSON(data []byte, v interface{}) error

UnmarshalJSON calls json.Unmarshal and wraps any resulting errors.

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