app

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Gui    *gui.Gui
	Config *Config
}

The App struct is responsible to hold app-wide related entities. Currently it has only the gui.Gui pointer for interface entity.

func Setup

func Setup(argConfig *Config) (*App, error)

Setup will handle pre-required operations. It is designed to be a wrapper for main method right now.

func (*App) Close

func (app *App) Close() error

Close function will handle if any cleanup is required. e.g. closing streams or cleaning temproray files so on and so forth

type Config added in v0.4.0

type Config struct {
	Directories []string
	LogLevel    string
	Depth       int
	QuickMode   bool
	Mode        string
}

Config is an assembler data to initiate a setup

func LoadConfiguration

func LoadConfiguration() (*Config, error)

LoadConfiguration returns a Config struct is filled

Jump to

Keyboard shortcuts

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