util

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToJSON

func ConvertToJSON(val interface{}) (string, error)

ConvertToJSON convert object to json

func FilterFiles

func FilterFiles(files, filters []string) []string

FilterFiles filters files list based on specific sub-strings

func GenerateUUID4

func GenerateUUID4() string

GenerateUUID4 create a UUID

func InArray

func InArray(val interface{}, array interface{}) bool

InArray check if value is on array

func ListFiles

func ListFiles(basePath string) []string

ListFiles lists all files inside a dir

func ReadFile

func ReadFile(path string) string

ReadFile get the file content

func Unset

func Unset(a []string, i int) []string

Unset remove element at position i

Types

This section is empty.

Jump to

Keyboard shortcuts

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