helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastValue

func CastValue[T any](value interface{}) T

func DecodeJSON

func DecodeJSON(data []byte, v interface{}) error

func GetValue

func GetValue(value, defaultValue interface{}) interface{}

GetValue returns the default value if the provided value is empty or nil.

func JoinWithProjectPath

func JoinWithProjectPath(relativePath ...string) string

JoinWithProjectPath combines the input path with the project directory

func ProjectPath

func ProjectPath() (string, error)

JoinWithProjectPath combines the input path with the project directory

func StringInArray

func StringInArray(arr []string, str string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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