zero

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

README

Zero

Build and deploy golang application in a second.

Usage

Add to your application:

var deploy = flag.Bool("deploy", false, "deploy to zero environment")

func main() {
	flag.Parse()

	if *deploy {
		if err := zero.Deploy(8095); err != nil {
			log.Fatal(err)
		}
	}

	println("hello world")	
}

Run:

go build && ./myapp -deploy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(port int) error

Deploy installs and starts golang app from the current directory to the zero server.

func Email

func Email(from string, to []string, subject, body string) error

Email can be used to send an email from the app which runs on zero server.

func Log added in v1.0.1

func Log() (string, error)

Log gets an app log from the zero server.

Types

This section is empty.

Directories

Path Synopsis
cmd
examples
log
ps

Jump to

Keyboard shortcuts

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