Go Hello World
Create a file named main.go with the following content:
package main
import "github.com/gin-gonic/gin"
func main() { r := gin.Default()
r.GET("/", func(c *gin.Context) { c.JSON(200, gin.H{ "message": "Hello World", }) })
r.Run()}Run it locally:
go mod init hello-worldgo mod tidygo run main.gocurl http://localhost:8080# {"message":"Hello World"}Ready to deploy? Use the Origin Clouds CLI or SDK to push your app.
Deploy to Origin Clouds →