File: util_posix.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 (11 lines) | stat: -rw-r--r-- 139 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
// +build !windows

package fqdn

func chomp(s string) string {
	if len(s) > 0 && s[len(s)-1] == '\n' {
		s = s[:len(s)-1]
	}

	return s
}