Documentation ¶
Index ¶
- func CheckifStringIsEmpty(data string) bool
- func Danger(e error)
- func LogErrorToFile(name string, text ...interface{}) error
- func LogErrorToNamedFileInDir(name, dir string, text ...interface{})
- func Logerror(e error)
- func Notice(text string)
- func PrintInformation(text string)
- func PrintTextInASpecificColorInBold(colorName, text string)
- func RandLetters(length int) string
- func RandNo(length int) string
- func RandNoLetter(length int) string
- func RandString(length int) string
- func Start(l RequestLogger) http.Handler
- func TrueRand(len int) string
- func Warning(text string)
- type ErrorLogger
- type RequestLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckifStringIsEmpty ¶
Check if a string is empty returns True if string is a string
func LogErrorToFile ¶
Log and error to file Allows format string input
func LogErrorToNamedFileInDir ¶
func LogErrorToNamedFileInDir(name, dir string, text ...interface{})
func PrintInformation ¶
func PrintInformation(text string)
func PrintTextInASpecificColorInBold ¶
func PrintTextInASpecificColorInBold(colorName, text string)
func RandNoLetter ¶
Retrns a random string with numbers and letters (caps on)
func RandString ¶
func Start ¶
func Start(l RequestLogger) http.Handler
Types ¶
type ErrorLogger ¶
type RequestLogger ¶
func (RequestLogger) LogRequest ¶
func (l RequestLogger) LogRequest(handler http.Handler) http.Handler
func (RequestLogger) OpenLogFile ¶
func (l RequestLogger) OpenLogFile()
opens or creates a file for logging To be addedfile permisions
Click to show internal directories.
Click to hide internal directories.