hostname

package
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElevateToAddHostEntry

func ElevateToAddHostEntry(hostname string, ip string) (string, error)

ElevateToAddHostEntry runs the required DDEV hostname command to add the entry

func ElevateToRemoveHostEntry

func ElevateToRemoveHostEntry(hostname string, ip string) (string, error)

ElevateToRemoveHostEntry runs the required ddev-hostname command to remove the entry,

func GetDdevHostnameBinary

func GetDdevHostnameBinary() string

GetDdevHostnameBinary returns the path to the ddev-hostname or ddev-hostname.exe binary It must exist in the PATH

func IsHostnameInHostsFile

func IsHostnameInHostsFile(hostname string) (bool, error)

IsHostnameInHostsFile checks to see if the hostname already exists On WSL2 it normally assumes that the hosts file is in WSL2WindowsHostsFile Otherwise it lets goodhosts decide where the hosts file is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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