On Thu, Mar 31, 2022 at 5:27 AM Henry <henry.adisuma...@gmail.com> wrote:

> // +build debug
>
> package mypkg
>
> func init() {
>    Debug = true
> }

Doing here instead

const Debug = true

removes (DCE) the runtime checks in other files.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-Vtb%2B_jcGfn7L-qPf7im5DqzD%2B%3DXx096em1UXrjV%2Bt-ag%40mail.gmail.com.

Reply via email to