package main import ( "go_example/model" "net/http" "time" "github.com/labstack/echo" "github.com/objectbox/objectbox-go/objectbox" ) func main() { e := echo.New() e.POST("/add", addFavorite) e.Logger.Fatal(e.Start(":1323")) } func addFavorite(c echo.Context) error { favorite := new(AddFavoriteRequest) // データ受け取り if error := c.Bind(favorite); error != nil { return error } // initialize ob := initO
![【第10回】Go言語(Golang)入門~ObjectBox活用編~ – 株式会社ライトコード](https://cdn-ak-scissors.b.st-hatena.com/image/square/9231213075d469f152ceded78498053c530c696b/height=288;version=1;width=512/https%3A%2F%2Frightcode.co.jp%2Fwp-content%2Fuploads%2F2019%2F11%2Fgolang-introduction-objectbox-utilization.png)