utils

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEmptyFields added in v1.0.10

func CheckEmptyFields(s interface{}) bool

Checks, whether the struct has empty fields.

func CheckErr added in v1.0.0

func CheckErr(err error)

func Command added in v1.0.0

func Command(command string, args ...string) error

func CopyFile added in v1.0.0

func CopyFile(src string, dst string) error

func FilterEmpty added in v1.0.0

func FilterEmpty(slice []string) []string

Filter empty strings from slice.

func GetDatabaseHost

func GetDatabaseHost() interface{}

func GetDatabaseName

func GetDatabaseName() interface{}

func GetDatabasePassword

func GetDatabasePassword() interface{}

func GetDatabasePort

func GetDatabasePort() interface{}

func GetDatabaseUser

func GetDatabaseUser() interface{}

func GetGitHubGQLApi added in v1.0.0

func GetGitHubGQLApi() string

func GetGithubToken added in v1.0.0

func GetGithubToken() interface{}

func GetGithubUsername

func GetGithubUsername() interface{}

func GetGoPath added in v1.0.0

func GetGoPath() string

func GetProcessDirPath added in v1.0.0

func GetProcessDirPath() string

func GetRequest added in v1.0.0

func GetRequest(url string) string

Performs a GET request to the specified URL.

func GetSourceGraphGQLApi added in v1.0.0

func GetSourceGraphGQLApi() string

func RemoveCharFromString added in v1.0.0

func RemoveCharFromString(str string, chr rune) string

func RemoveDuplicates added in v1.0.0

func RemoveDuplicates(slice []string) []string

removeDuplicates removes duplicates from a slice of strings

func RemoveFiles added in v1.0.0

func RemoveFiles(pathsToFiles ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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