A simple frame for quickly setting up api services based on [go-cloud](https://github.com/google/go-cloud) framework
A simple frame for quickly setting up api servers based on go-cloud framework
Frame lets you do anything you want to do your way. It organizes and simplifies access to the things you utilize within your setup. Only what is initialized at startup is what frame will instantiate at runtime. Under the hood, frame utilizes go-cloud to be cloud native without a lot of worries on being locked in.
go get -u github.com/pitabwire/frame
The simplest possible Frame server in 5 lines:
package main
import ("github.com/pitabwire/frame"; "net/http"; "context")
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello!")) })
frame.NewService("hello-service", frame.HttpHandler(http.DefaultServeMux)).Run(context.Background(), ":8080")
}
Try it:
curl http://localhost:8080/
For more comprehensive examples and detailed documentation of Frame’s features, check the sections below.
Join us in delivering a better frame! by:
Spreading the word
Program