Original code:

$ cat production.go

//go:build production
// +build production
// +build linux  <<<<<< Notice This Line as my production code is only 
available on Linux

package main

const (
    isProductionCode = true
    isDebugCode      = false
)

$ go fmt production.go
production.go
$ cat production.go
//go:build production
// +build production

package main

const (
    isProductionCode = true
    isDebugCode      = false
)
Thanks,
Sandeep Kalra

-- 
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/450aff24-c13d-4a16-a360-93cfeaa21578n%40googlegroups.com.

Reply via email to