Closed talwat closed 2 years ago
@talwat could you change presets to be a struct instead? ex below
type logTypes struct {
Info string
Success string
Error string
Warn string
Fatal string
}
alternatively, you could use a map[string]string
instead of an array, setting indices to the log type
Pull Request
PR status
Proposed changes
There was 5 log Functions. I simply replaced them with a single log function. ## Related issuesNotes from author