common

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigUsage string = `` /* 642-byte string literal not displayed */

Functions

func AbsHomeDir

func AbsHomeDir(path string) string

func ConfDir

func ConfDir() string

func GenerateConfig

func GenerateConfig(configPath string) *os.File

func GitCloneOrPull

func GitCloneOrPull(url string, path string, wg *sync.WaitGroup)

Types

type Config

type Config struct {
	Token string `json:"token"`
	Path  string `json:"path"`
}

func GetConfig

func GetConfig(path string) Config

Jump to

Keyboard shortcuts

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