Documentation ¶
Index ¶
- func CoalesceErr(errs ...error) error
- func EnvIsTrue(key string) bool
- func GenerateRandAlphaNumericKey(n int) (string, error)
- func GenerateRandCode(n int) string
- func GenerateRandDBName() (string, error)
- func GenerateRandEmail() string
- func GenerateRandPassword() (string, error)
- func GenerateRandPhoneNumber() string
- func GetAbsolutePath(filePath string) string
- func GetEnv(key, defaultValue string) string
- func GetPathToScript(path string, fromTest bool) string
- func GoSchemaKill(v interface{})
- func StringsEqual(slice, slice2 []string) bool
- type ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoalesceErr ¶
CoalesceErr takes a variable numbers of errors and returns an error
func GenerateRandAlphaNumericKey ¶
Generate a random alphanumeric string
func GenerateRandCode ¶
Generate a random integer code of length n
func GenerateRandDBName ¶
func GenerateRandEmail ¶
func GenerateRandEmail() string
func GenerateRandPassword ¶
func GenerateRandPhoneNumber ¶
func GenerateRandPhoneNumber() string
func GetAbsolutePath ¶
func GetPathToScript ¶
path should be scripts/... e.g. scripts/custom_graphql.ts
func GoSchemaKill ¶
func GoSchemaKill(v interface{})
panic not ok in typescript path. ok in golang since that's deprecated and not updated using a different API to make it easier to grep/etc
func StringsEqual ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.