util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 1 package

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

This section is empty.

Functions

func Debug

func Debug(format string, args ...interface{})

func HandleHttpRequest

func HandleHttpRequest(w http.ResponseWriter, r *http.Request, request, response interface{}, actionFunc func())

func MurmurHash

func MurmurHash(args ...string) string

TODO: remove murmurhash, use sha256 for file locks

func PerformHttpPost

func PerformHttpPost(client *http.Client, url string, request, response interface{}) error

func Sha3_224Hash

func Sha3_224Hash(args ...string) string

func Sha256Hash

func Sha256Hash(args ...string) string

Types

type SerializableError

type SerializableError struct {
	Error error
}

func (SerializableError) MarshalJSON

func (obj SerializableError) MarshalJSON() ([]byte, error)

func (SerializableError) String

func (obj SerializableError) String() string

func (*SerializableError) UnmarshalJSON

func (obj *SerializableError) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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