fogfish/blueprint-serverless-golang

View on GitHub
cmd/server/main.go

Summary

Maintainability
A
0 mins
Test Coverage
package main

import (
    server "net/http"

    "github.com/fogfish/blueprint-serverless-golang/internal/services/restapi"
    "github.com/fogfish/gouldian/v2/server/httpd"
)

func main() {
    api := restapi.NewPetShopAPI()

    server.ListenAndServe(":8080",
        httpd.Serve(
            api.List(),
            api.Create(),
            api.Lookup(),
        ),
    )
}