2021-10-26から1日間の記事一覧
サンプルコード bodyJsonにjsonの文字列を代入し、strings.NewReaderで読み込んであげる。 package handler_test import ( "net/http" "net/http/httptest" "strings" "testing" "github.com/labstack/echo/v4" "github.com/stretchr/testify/assert" ) func…
サンプルコード bodyJsonにjsonの文字列を代入し、strings.NewReaderで読み込んであげる。 package handler_test import ( "net/http" "net/http/httptest" "strings" "testing" "github.com/labstack/echo/v4" "github.com/stretchr/testify/assert" ) func…