gopainless

package
v0.0.0-...-fc90086 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GREEN  = "#00ff5f"
	YELLOW = "#ffef00"
	RED    = "#ff0001"
)

Variables

This section is empty.

Functions

func Build

func Build(goos string, goarch string, output string, target string)

func Clean

func Clean()

func CreateFromTemplate

func CreateFromTemplate(templateName string, projectName string)

func Exists

func Exists(filePath string) (bool, error)

func ModFileCreate

func ModFileCreate(name string, workingDirectory string)

func PkgAdd

func PkgAdd(uri string, name string, private bool, update bool, recursive bool)

func PkgDelete

func PkgDelete(name string) bool

func PkgFileCreate

func PkgFileCreate(name string, version string)

func PkgFileLoad

func PkgFileLoad()

func PkgFileNew

func PkgFileNew(name string, version string)

func PkgRestore

func PkgRestore(recursive bool, update bool)

func Run

func Run(cmd string, args string, workingDirectory *string) error

func Setup

func Setup()

func Tidy

func Tidy()

func Write

func Write()

Types

type OperatingSystems

type OperatingSystems string
const (
	LINUX   OperatingSystems = "linux"
	WINDOWS OperatingSystems = "windows"
	MAC     OperatingSystems = "mac"
)

type Package

type Package struct {
	Name     string                  `json:"Name"`
	Version  string                  `json:"Version"`
	Packages map[string]PackageValue `json:"Packages"`
}

type PackageValue

type PackageValue struct {
	URI     string `json:"Uri"`
	Private bool   `json:"Private"`
}

Jump to

Keyboard shortcuts

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