File: autoflag_off.go

package info (click to toggle)
golang-github-lestrrat-go-pdebug 0.0~git20180220.0.569c974-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build debug

package pdebug

import (
	"os"
	"strconv"
)

var Trace = false
func init() {
	if b, err := strconv.ParseBool(os.Getenv("PDEBUG_TRACE")); err == nil && b {
		Trace = true
	}
}