Documentation ¶
Overview ¶
package util provides common utilities for all other packages.
Index ¶
- func Argument(test bool)
- func Assert(test bool)
- func AssertMsg(test bool, msg interface{})
- func Fatal(msg ...interface{})
- func FatalErr(err interface{})
- func Fatalf(format string, msg ...interface{})
- func Fprint(out io.Writer, array ...interface{})
- func Fprintf(out io.Writer, format string, array ...interface{})
- func FprintfFloats(out io.Writer, format string, a [][][]float32)
- func FprintfTensors(out io.Writer, format string, a [][][][]float32)
- func InterfaceAddrs() []string
- func Log(msg ...interface{})
- func LogErr(err error, msg ...interface{})
- func NoExt(file string) string
- func PanicErr(err error)
- func Print(array ...interface{})
- func PrintProgress(prog, total int, msg string)
- func Printf(format string, array ...interface{})
- func Println(array ...interface{})
- func Progress(progress, total int, msg string)
- func SetProgress(f func(int, int, string))
- func Sprint(array ...interface{}) string
- type Atom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FprintfFloats ¶
Produces nicely formatted output.
func FprintfTensors ¶
Produces nicely formatted output.
func InterfaceAddrs ¶
func InterfaceAddrs() []string
returns all network interface addresses, without CIDR mask
func Print ¶
func Print(array ...interface{})
Produces nicely formatted output for multi-dimensional arrays.
func PrintProgress ¶
func Printf ¶
func Printf(format string, array ...interface{})
Produces nicely formatted output for multi-dimensional arrays.
func Println ¶
func Println(array ...interface{})
Produces nicely formatted output for multi-dimensional arrays.
func SetProgress ¶
Sets the function to be used internally by Progress. Avoids cyclic dependency on engine.
Types ¶
Click to show internal directories.
Click to hide internal directories.