FIXED: * *Some* documentation weirdness on pkg.go dev rendering. It still uses the Markdown render by default, and it seems if you use anchor links in a bulletpoint list, pandoc just says "lol screw you"... ADDED: * tplx/sprigx tpl function `osHostname`
14 lines
152 B
Go
14 lines
152 B
Go
package sprigx
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// osHostname returns os.Hostname()
|
|
func osHostname() (out string, err error) {
|
|
|
|
out, err = os.Hostname()
|
|
|
|
return
|
|
}
|