File: log_debug.go

package info (click to toggle)
golang-github-showmax-go-fqdn 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bullseye, bullseye-backports, forky, sid, trixie
  • size: 176 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 158 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// +build DEBUG

package fqdn

import "fmt"

func debug(s string, v ...interface{}) {
	if s[len(s)-1] != '\n' {
		s += string('\n')
	}
	fmt.Printf(s, v...)
}