File: example_test.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 (15 lines) | stat: -rw-r--r-- 190 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package fqdn_examples

import (
	"fmt"

	"github.com/Showmax/go-fqdn"
)

func ExampleFqdnHostname() {
	fqdn, err := fqdn.FqdnHostname()
	if err != nil {
		panic(err)
	}
	fmt.Println(fqdn)
}