utils

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MPL-2.0 Imports: 5 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ensure

func Ensure(err error, msg ...interface{})

func EnsureEqual added in v0.1.10

func EnsureEqual(a, b interface{}, msg ...string)

func EnsureTrue

func EnsureTrue(b bool, msg ...string)

func JsonBytes added in v0.1.7

func JsonBytes(v interface{}) []byte

func JsonStr

func JsonStr(v interface{}) string

func JsonString

func JsonString(v interface{}) string

func LoadJsonFile

func LoadJsonFile(file string, val interface{}) error

Types

This section is empty.

Directories

Path Synopsis
* Copyright (C) 2018 The ontology Authors * This file is part of The ontology library.
* Copyright (C) 2018 The ontology Authors * This file is part of The ontology library.
Package common contains various helper functions.
Package common contains various helper functions.
hexutil
Package hexutil implements hex encoding with 0x prefix.
Package hexutil implements hex encoding with 0x prefix.
math
Package math provides integer math utilities.
Package math provides integer math utilities.

Jump to

Keyboard shortcuts

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