utils

package
v0.0.0-...-726f7ef Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(cond bool, msg string)

Assert ...

func Compare

func Compare(a, b *qpu.Value) (int, error)

Compare ...

func Error

func Error(err error) error

Error logs the given error message and the stack trace, and returns an error.

func GetValue

func GetValue(v *qpu.Value) (interface{}, error)

GetValue ...

func Trace

func Trace(msg string, fields map[string]interface{})

Trace is a wrapper for printing trace messaging Requires the qpu service to be launched with trace logging level (-l trace)

func ValueToStr

func ValueToStr(v *qpu.Value) (string, error)

ValueToStr ...

func Warn

func Warn(err error)

Warn ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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