Documentation ¶
Index ¶
Constants ¶
View Source
const ( NAME string = "xurlfind3r" VERSION string = "0.4.0" )
Variables ¶
View Source
var ( BANNER = aurora.Sprintf( aurora.BrightBlue(` _ __ _ _ _____ __ ___ _ _ __| |/ _(_)_ __ __| |___ / _ __ \ \/ / | | | '__| | |_| | '_ \ / _`+"`"+` | |_ \| '__| > <| |_| | | | | _| | | | | (_| |___) | | /_/\_\\__,_|_| |_|_| |_|_| |_|\__,_|____/|_| %s %s`).Bold(), aurora.BrightRed("v"+VERSION).Bold(), aurora.BrightYellow("with <3 by Hueristiq Open Source").Italic(), ) UserDotConfigDirectoryPath = func() (userDotConfig string) { var err error userDotConfig, err = os.UserConfigDir() if err != nil { hqgolog.Fatal().Msg(err.Error()) } return }() ProjectRootDirectoryPath = filepath.Join(UserDotConfigDirectoryPath, projectRootDirectoryName) ConfigurationFilePath = filepath.Join(ProjectRootDirectoryPath, configurationFileName) )
Functions ¶
func CreateUpdate ¶
Types ¶
type Configuration ¶
type Configuration struct { Version string `yaml:"version"` Sources []string `yaml:"sources"` Keys sources.Keys `yaml:"keys"` }
func Read ¶
func Read(path string) (configuration Configuration, err error)
func (*Configuration) Write ¶
func (configuration *Configuration) Write(path string) (err error)
Click to show internal directories.
Click to hide internal directories.