projectpath

package
v0.0.0-...-77f0b0c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFile = "v1.json"

Variables

View Source
var (

	// Root folder of the `backend` directory
	// Returns ~/path/to/highlight/backend
	Root = filepath.Join(filepath.Dir(b), "..")
)

Functions

func GetConfigDir

func GetConfigDir() (string, error)

func GetPersistentRoot

func GetPersistentRoot() string

func GetRoot

func GetRoot() string

func SaveConfig

func SaveConfig(cfg *Config) (err error)

Types

type Config

type Config struct {
	PhoneHomeDeploymentID string `json:"phone_home_session"`
}

func GetConfig

func GetConfig() (*Config, error)

Jump to

Keyboard shortcuts

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