goproject

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SourceControl   SourceControl    `mapstructure:"sourcecontrol"`
	Go              Go               `mapstructure:"go"`
	CustomTemplates []CustomTemplate `mapstructure:"custom_templates"`
	TemplatesPath   string
}

Config application configuration

func Load

func Load() (*Config, error)

Load the configuration from disk

type CustomTemplate

type CustomTemplate struct {
	Name string `mapstructure:"name"`
	Path string `mapstructure:"path"`
}

CustomTemplate specifies user template locations

type Go

type Go struct {
	Vendor bool
}

Go sets various Go Modules related options

type GoProject

type GoProject struct {
	Config *Config
}

GoProject contains base application dependencies

func New

func New() GoProject

New constructs a new instance of the application.

type SourceControl

type SourceControl struct {
	URI string
}

SourceControl configuration sets the default upstream initializing git projects

Jump to

Keyboard shortcuts

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