import ( "github.com/globocom/tsuru/provision" ) func main() { app := provision.NewApp("my-app", "python") err := app.Deploy("./my-app") if err != nil { panic(err) } }
import ( "github.com/globocom/tsuru/provision" ) func main() { app := provision.NewApp("my-app", "go") err := app.SetEnv("GOENV", "production") if err != nil { panic(err) } err = app.Scale(3) if err != nil { panic(err) } }This code creates a new Tsuru application called "my-app" with the Go language runtime, sets an environment variable, and scales the app to run on three instances. Overall, the go package library github.com.globocom.tsuru.provision provides a comprehensive and flexible set of tools for creating and managing applications on the Tsuru platform.