helpers

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(s string) string

Capitalizes a string

func CheckGenericError

func CheckGenericError(logger *log.Entry, err error)

CheckGenericError checks if there's an error, shows it and exits the program if it is

func GetLogger

func GetLogger(debug bool) *log.Entry

Set the logger level

func StringInSlice

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

StringInSlice checks if there's a string in a slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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