Help us shape the future of Go! Take the 2026 Go Developer Survey

hostname

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package hostname implements the `hostname` built-in. Reads /etc/hostname from the VFS; defaults to "localhost" when the file is missing or empty. Setting the hostname is not supported in the sandboxed FS (matches just-bash).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the hostname command.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL