common

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If(condition bool, trueVal, falseVal interface{}) interface{}

func IfBool

func IfBool(condition bool, trueVal, falseVal bool) bool

func IfError

func IfError(condition bool, trueVal, falseVal error) error

func IfFloat64

func IfFloat64(condition bool, trueVal, falseVal float64) float64

func IfInt

func IfInt(condition bool, trueVal, falseVal int) int

func IfString

func IfString(condition bool, trueVal, falseVal string) string

Types

type Json

type Json map[string]interface{}

func (Json) Get

func (j Json) Get(key string) interface{}

func (Json) Set

func (j Json) Set(key string, val interface{}) Json

func (Json) String

func (j Json) String() string

Jump to

Keyboard shortcuts

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