Kqzz / MCsniperGO

MCsniperGO, a fast, efficient, and feature-packed minecraft name sniper.
https://mcsniperpy.com
187 stars 37 forks source link

Replaced the 5 warn functions with a single one and a hashmap/map. #9

Closed talwat closed 2 years ago

talwat commented 2 years ago

Pull Request

PR status

Proposed changes

There was 5 log Functions. I simply replaced them with a single log function. ## Related issues

Notes from author

overestimate commented 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