config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppName is the name of the application
	AppName = "webkit"

	// DirName is the config directory name under user's home
	DirName = ".config"
)

Variables

This section is empty.

Functions

func Dir

func Dir() (string, error)

Dir returns the WebKit configuration directory path. Returns: ~/.config/webkit

func Path

func Path(filename string) (string, error)

Path returns the full path to a file in the WebKit config directory. Example: config.Path("age.key") returns ~/.config/webkit/age.key

func Read

func Read(filename string) ([]byte, error)

Read reads a file from the WebKit config directory.

func Write

func Write(filename string, data []byte, perm os.FileMode) error

Write writes a file to the WebKit config directory. Creates the config directory if it doesn't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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