project

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	Path string
}

Project represents a simple structure with a couple of useful methods to init a project

func (*Project) Check

func (p *Project) Check() error

Check if the project directory exists. TODO improve the checks

func (*Project) CreateSubDirs

func (p *Project) CreateSubDirs(subDirs []string) (err error)

CreateSubDirs creates directories inside the p.Path base directory

func (*Project) Reset

func (p *Project) Reset() (err error)

Reset deletes and recreates the (p.Path) base directory

func (*Project) WriteFile

func (p *Project) WriteFile(fileName string, content []byte) (err error)

WriteFile writes a new file (fileName) with the content specified

Jump to

Keyboard shortcuts

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