config

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 13 Imported by: ? modules, 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

View Source
var Current config

Functions

func Dir

func Dir() (string, error)

Dir is the user's folder of the app, ~/.config/tide: its session and its .env.

func Env

func Env(key string) string

Env is the name of the app's environment variable key: TIDE_<key>, the prefix from the name. TODO: NOTES_<key> is read while TIDE_<key> is unset, remove it once the server's .env is migrated to TIDE_.

func File

func File(name string) (string, error)

File is the file of Dir to read by that name, or the one of ~/.config/notes when Dir has none. Writes go to Dir. TODO: ~/.config/notes is read while ~/.config/tide lacks the file, remove it once the server is migrated to Tide.

func Title

func Title() string

Title is the name of the app as shown: Tide.

func Version

func Version() string

Version comes from the build (the tag of an image, the git commit, or module version without one): nothing to keep in sync by hand. tide and tide-server of one build answer the same.

Types

This section is empty.

Jump to

Keyboard shortcuts

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