utils

package
v1.30.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() string

getConfigDir returns the directory of the configuration JSON file.

func GetConfigPath

func GetConfigPath() string

getConfigPath returns the path to the configuration JSON file.

func GetHomeDir

func GetHomeDir() string

func IsLocalhost added in v1.28.7

func IsLocalhost(url string) bool

IsLocalhost checks if a URL or host string refers to localhost

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳