Versions in this module Expand all Collapse all v0 v0.0.3 May 26, 2020 v0.0.2 May 23, 2020 v0.0.1 May 23, 2020 Changes in this version + const BuildModeBridge + const BuildModeDebug + const BuildModeProd + const Version + func BuildApplication(binaryName string, forceRebuild bool, buildMode string, packageApp bool, ...) error + func BuildDocker(binaryName string, buildMode string, projectOptions *ProjectOptions) error + func BuildFrontend(projectOptions *ProjectOptions) error + func BuildNative(binaryName string, forceRebuild bool, buildMode string, ...) error + func CheckDependencies(logger *Logger) (bool, error) + func CheckDependenciesSilent(logger *Logger) (bool, error) + func CheckIfInstalled(application string) (err error) + func CheckMewn(verbose bool) (err error) + func CheckWindres() (err error) + func DpkgInstalled(packageName string) (bool, error) + func EmbedAssets() ([]string, error) + func EqueryInstalled(packageName string) (bool, error) + func GetCurrentVersion() (*semver.Version, error) + func GetWailsVersion() (*semver.Version, error) + func GoModOutOfSync() (bool, error) + func InitializeCrossCompilation(verbose bool) error + func InstallBridge(projectDir string, projectOptions *ProjectOptions) error + func InstallFrontendDeps(projectDir string, projectOptions *ProjectOptions, forceRebuild bool, ...) error + func InstallGoDependencies(verbose bool) error + func InstallProdRuntime(projectDir string, projectOptions *ProjectOptions) error + func InstallRuntime(caller string, projectDir string, projectOptions *ProjectOptions) error + func PackageApplication(projectOptions *ProjectOptions) error + func PacmanInstalled(packageName string) (bool, error) + func Prompt(question string, defaultValue ...string) string + func PromptRequired(question string, defaultValue ...string) string + func PromptSelection(question string, options []string, optionalDefaultValue ...int) int + func RequestSupportForDistribution(distroInfo *DistroInfo) error + func RpmInstalled(packageName string) (bool, error) + func ServeProject(projectOptions *ProjectOptions, logger *Logger) error + func UpdateGoModVersion() error + func ValidateFrontendConfig(projectOptions *ProjectOptions) error + func XbpsInstalled(packageName string) (bool, error) + type Action func() error + type CheckPkgInstalled func(string) (bool, error) + type Cli struct + func NewCli(name, description string) *Cli + func (c *Cli) BoolFlag(name, description string, variable *bool) *Command + func (c *Cli) Command(name, description string) *Command + func (c *Cli) DefaultCommand(defaultCommand *Command) *Cli + func (c *Cli) PreRun(callback func(*Cli) error) + func (c *Cli) PrintHelp() + func (c *Cli) Run(args ...string) error + func (c *Cli) StringFlag(name, description string, variable *string) *Command + func (c *Cli) Version(version string) + type Command struct + ActionCallback Action + App *Cli + AppVersion string + CommandPath string + Flags *flag.FlagSet + Longdescription string + Name string + Shortdescription string + SubCommands []*Command + SubCommandsMap map[string]*Command + func NewCommand(name string, description string, app *Cli, parentCommandPath string) *Command + func (c *Command) Action(callback Action) *Command + func (c *Command) BoolFlag(name, description string, variable *bool) *Command + func (c *Command) Command(name, description string) *Command + func (c *Command) Hidden() + func (c *Command) LongDescription(Longdescription string) *Command + func (c *Command) PrintHelp() + func (c *Command) Run(args []string) error + func (c *Command) StringFlag(name, description string, variable *string) *Command + type Dir struct + func (d *Dir) GetAllFilenames() (*slicer.StringSlicer, error) + func (d *Dir) GetSubdirs() (map[string]string, error) + type Distribution struct + ID string + Releases map[string]*Release + func (d *Distribution) GetRelease(version string) *Release + type DistroInfo struct + Description string + Distribution LinuxDistribution + ID string + Name string + Release string + func GetLinuxDistroInfo() *DistroInfo + type FSHelper struct + func NewFSHelper() *FSHelper + func (fs *FSHelper) CopyFile(source, target string) error + func (fs *FSHelper) CreateFile(filename string, data []byte) error + func (fs *FSHelper) Cwd() string + func (fs *FSHelper) DirExists(path string) bool + func (fs *FSHelper) Directory(dir string) (*Dir, error) + func (fs *FSHelper) FileExists(path string) bool + func (fs *FSHelper) FileMD5(filename string) (string, error) + func (fs *FSHelper) FindFile(path, match string) (string, error) + func (fs *FSHelper) LoadAsBytes(filename string) ([]byte, error) + func (fs *FSHelper) LoadAsString(filename string) (string, error) + func (fs *FSHelper) LoadRelativeFile(relativePath string) ([]byte, error) + func (fs *FSHelper) LocalDir(dir string) (*Dir, error) + func (fs *FSHelper) MkDir(dir string) error + func (fs *FSHelper) MkDirs(fullPath string, mode ...os.FileMode) error + func (fs *FSHelper) RemoveFile(filename string) error + func (fs *FSHelper) RemoveFiles(files []string, continueOnError bool) error + func (fs *FSHelper) SaveAsJSON(data interface{}, filename string) error + type GitHubHelper struct + func NewGitHubHelper() *GitHubHelper + func (g *GitHubHelper) GetLatestPreRelease() (result *SemanticVersion, err error) + func (g *GitHubHelper) GetLatestStableRelease() (result *SemanticVersion, err error) + func (g *GitHubHelper) GetVersionTags() ([]*SemanticVersion, error) + func (g *GitHubHelper) IsValidTag(tagVersion string) (bool, error) + type LinuxDB struct + Distributions map[string]*Distribution + func NewLinuxDB() *LinuxDB + func (l *LinuxDB) GetDistro(distro string) *Distribution + func (l *LinuxDB) ImportData(data []byte) error + func (l *LinuxDB) Load(filename string) error + type LinuxDistribution int + const Arch + const ArcoLinux + const CentOS + const Debian + const Deepin + const Elementary + const Fedora + const Gentoo + const Kali + const Leap + const Linuxmint + const Manjaro + const ManjaroARM + const Neon + const Parrot + const Raspbian + const Tumbleweed + const Ubuntu + const Unknown + const VoidLinux + const Zorin + type Logger struct + func NewLogger() *Logger + func (l *Logger) Error(format string, a ...interface{}) + func (l *Logger) Green(format string, a ...interface{}) + func (l *Logger) PrintBanner() error + func (l *Logger) PrintSmallBanner(message ...string) + func (l *Logger) Red(format string, a ...interface{}) + func (l *Logger) SetErrorOnly(errorOnly bool) + func (l *Logger) White(format string, a ...interface{}) + func (l *Logger) WhiteUnderline(format string, a ...interface{}) + func (l *Logger) Yellow(format string, a ...interface{}) + func (l *Logger) YellowUnderline(format string, a ...interface{}) + func (l *Logger) Yellowf(format string, a ...interface{}) + type PackageHelper struct + func NewPackageHelper(platform string) *PackageHelper + func (b *PackageHelper) CleanWindows(po *ProjectOptions) + func (b *PackageHelper) Package(po *ProjectOptions) error + func (b *PackageHelper) PackageWindows(po *ProjectOptions, cleanUp bool) error + type PackageManager int + const NPM + const UNKNOWN + const YARN + type Prerequisite struct + Help string + Name string + type Prerequisites []*Prerequisite + func GetRequiredLibraries() (*Prerequisites, error) + func GetRequiredPrograms() (*Prerequisites, error) + func (p *Prerequisites) Add(prereq *Prerequisite) + type Program struct + Name string + Path string + func (p *Program) GetFullPathToBinary() (string, error) + func (p *Program) Run(vars ...string) (stdout, stderr string, exitCode int, err error) + type ProgramHelper struct + func NewProgramHelper(verbose ...bool) *ProgramHelper + func (p *ProgramHelper) FindProgram(programName string) *Program + func (p *ProgramHelper) InstallGoPackage(packageName string) error + func (p *ProgramHelper) InstallNPMPackage(packageName string, save bool) error + func (p *ProgramHelper) IsInstalled(programName string) bool + func (p *ProgramHelper) RunCommand(command string) error + func (p *ProgramHelper) RunCommandArray(args []string, dir ...string) error + type ProjectHelper struct + func NewProjectHelper() *ProjectHelper + func (ph *ProjectHelper) GenerateProject(projectOptions *ProjectOptions) error + func (ph *ProjectHelper) LoadProjectConfig(dir string) (*ProjectOptions, error) + func (ph *ProjectHelper) NewProjectOptions() *ProjectOptions + type ProjectOptions struct + Architecture string + Author *author + BinaryName string + CrossCompile bool + Description string + FrontEnd *frontend + NPMProjectName string + Name string + OutputDirectory string + Platform string + Template string + UseDefaults bool + Verbose bool + Version string + WailsVersion string + func (po *ProjectOptions) Defaults() + func (po *ProjectOptions) GetNPMBinaryName() (PackageManager, error) + func (po *ProjectOptions) LoadConfig(projectDir string) error + func (po *ProjectOptions) PromptForInputs() error + func (po *ProjectOptions) SetTypescriptDefsFilename(filename string) + func (po *ProjectOptions) WriteProjectConfig() error + type Release struct + GccVersionCommand string + Libraries []*Prerequisite + Name string + Programs []*Prerequisite + Version string + type SemanticVersion struct + Version *semver.Version + func NewSemanticVersion(version string) (*SemanticVersion, error) + func (s *SemanticVersion) IsGreaterThan(version *SemanticVersion) (bool, error) + func (s *SemanticVersion) IsGreaterThanOrEqual(version *SemanticVersion) (bool, error) + func (s *SemanticVersion) IsPreRelease() bool + func (s *SemanticVersion) IsRelease() bool + func (s *SemanticVersion) MainVersion() *SemanticVersion + func (s *SemanticVersion) String() string + type SemverCollection []*SemanticVersion + func (c SemverCollection) Len() int + func (c SemverCollection) Less(i, j int) bool + func (c SemverCollection) Swap(i, j int) + type ShellHelper struct + func NewShellHelper() *ShellHelper + func (sh *ShellHelper) Run(command string, vars ...string) (stdout, stderr string, err error) + func (sh *ShellHelper) RunInDirectory(dir string, command string, vars ...string) (stdout, stderr string, err error) + func (sh *ShellHelper) SetVerbose() + type SystemConfig struct + Email string + Name string + func NewSystemConfig(filename string) (*SystemConfig, error) + func (sc *SystemConfig) Save(filename string) error + type SystemHelper struct + func NewSystemHelper() *SystemHelper + func (s *SystemHelper) BackupConfig() (string, error) + func (s *SystemHelper) CheckInitialised() error + func (s *SystemHelper) ConfigFileExists() bool + func (s *SystemHelper) ConfigFileIsValid() bool + func (s *SystemHelper) GetAuthor() (string, error) + func (s *SystemHelper) Initialise() error + func (s *SystemHelper) LoadConfig() (*SystemConfig, error) + type TemplateDependency struct + Bin string + Help string + type TemplateDetails struct + Metadata *TemplateMetadata + Name string + Path string + type TemplateHelper struct + func NewTemplateHelper() *TemplateHelper + func (t *TemplateHelper) CreateNewTemplate(dirname string, details *TemplateMetadata) (string, error) + func (t *TemplateHelper) GetTemplateDetails() (map[string]*TemplateDetails, error) + func (t *TemplateHelper) GetTemplateFilenames(template *TemplateDetails) (*slicer.StringSlicer, error) + func (t *TemplateHelper) InstallTemplate(projectPath string, projectOptions *ProjectOptions) error + func (t *TemplateHelper) IsValidTemplate(templateName string) bool + func (t *TemplateHelper) LoadMetadata(dir string) (*TemplateMetadata, error) + func (t *TemplateHelper) SanitizeFilename(name string) string + type TemplateMetadata struct + Author string + Bridge string + Build string + Created string + Description string + FrontendDir string + Install string + Name string + Serve string + ShortDescription string + TemplateDependencies []*TemplateDependency + Version string + WailsDir string