Documentation
¶
Index ¶
Constants ¶
View Source
const ( NAME string = "xsubfind3r" VERSION string = "0.7.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) (cfg Configuration, err error)
func (*Configuration) Write ¶
func (cfg *Configuration) Write(path string) (err error)
Click to show internal directories.
Click to hide internal directories.