parser

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstNonEmpty added in v0.5.6

func FirstNonEmpty(v ...interface{}) string

func GetContainer

func GetContainer(path string) (*gabs.Container, error)

GetContainer returns a gabs container from the given path.

func GetFirstString added in v0.5.6

func GetFirstString(v *gabs.Container, k ...string) string

GetFirstString returns the first non-empty string from the given keys.

func String added in v0.5.6

func String(v *gabs.Container, k ...string) string

func ToBool

func ToBool(v interface{}) bool

ToBool converts interface to bool. Hack to avoid panics when converting gabs data to string.

func ToFloat32

func ToFloat32(v interface{}) float32

func ToString

func ToString(v interface{}) string

ToString converts interface to string. Hack to avoid panics when converting gabs data to string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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