conv

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItem

func GetItem[T any](obj interface{}, keys string, sep string) (T, error)

GetItem return generic type of specified keys. Allow only map[string]interface{}/[]interface{} parent as it's used with nerdgraph structure.

func Ternary

func Ternary[T any](b bool, vt T, vf T) T

func To

func To[T any](obj interface{}) (out T, err error)

func ToForce

func ToForce[T any](obj interface{}) (out T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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