What's the difference between two gin modes, debug and release?

Viewed 3671

I mean the different modes of gin, which is the http framework of Golang, not of the VS IDE.

1 Answers

In release mode debug printing will not be as explained on this link.

func debugPrint(format string, values ...interface{}) {
    if IsDebugging() {
        if !strings.HasSuffix(format, "\n") {
            format += "\n"
        }
        fmt.Fprintf(os.Stderr, "[GIN-debug] "+format, values...)
    }
}
Related