builder

package
v0.0.0-...-114cd3e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder struct. app : Application name. dir : The directory from which build will take. commands : Commands to be run while building. lastBuild: When the last build was taken.

func New

func New(appName, appPath string, commands []string) *Builder

New create and return new builder object.

func (*Builder) Build

func (b *Builder) Build() bool

Build take build of our application.

func (*Builder) GetLastBuild

func (b *Builder) GetLastBuild() time.Time

GetLastBuild returns last build time.

func (*Builder) SetLastBuild

func (b *Builder) SetLastBuild(time time.Time)

SetLastBuild update lastest build time.

Jump to

Keyboard shortcuts

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