mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
20 lines
248 B
Go
20 lines
248 B
Go
package toml
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
)
|
|
|
|
var flagOut = false
|
|
|
|
func init() {
|
|
flag.BoolVar(&flagOut, "out", flagOut, "Print debug output.")
|
|
flag.Parse()
|
|
}
|
|
|
|
func testf(format string, v ...interface{}) {
|
|
if flagOut {
|
|
fmt.Printf(format, v...)
|
|
}
|
|
}
|