util

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert added in v0.9.0

func Assert(b bool)

Assert panics if b is false. If compile with -tags release, Assert will be compiled out

func GetConfigDir

func GetConfigDir() (string, error)

GetConfigDir returns the path to the user config dir on the current machine as a string.

If the config dir does not exist, it is created.

If the default location for config directories does not exist, or if there is an error creating the config dir, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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