diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-15 13:58:56 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-15 13:58:56 +0700 |
| commit | 8ba25dd9f5d823a4bd66967b33ee9d2624397129 (patch) | |
| tree | 840b555620baf86b70f92f9553741a5ac39654eb /example.go | |
| parent | cb9e9ecf8466386621954acdafc460ecd0c3f82f (diff) | |
| download | gorankusu-8ba25dd9f5d823a4bd66967b33ee9d2624397129.tar.xz | |
all: update module pakakeh.go to the tip
Diffstat (limited to 'example.go')
| -rw-r--r-- | example.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -134,7 +134,7 @@ func (ex *Example) Stop() { // registerEndpoints register HTTP endpoints for testing. func (ex *Example) registerEndpoints() (err error) { - err = ex.Gorankusu.Httpd.RegisterEndpoint(&libhttp.Endpoint{ + err = ex.Gorankusu.Httpd.RegisterEndpoint(libhttp.Endpoint{ Method: libhttp.RequestMethodGet, Path: pathExample, RequestType: libhttp.RequestTypeQuery, @@ -145,7 +145,7 @@ func (ex *Example) registerEndpoints() (err error) { return err } - err = ex.Gorankusu.Httpd.RegisterEndpoint(&libhttp.Endpoint{ + err = ex.Gorankusu.Httpd.RegisterEndpoint(libhttp.Endpoint{ Method: libhttp.RequestMethodGet, Path: pathExampleError, RequestType: libhttp.RequestTypeQuery, @@ -156,7 +156,7 @@ func (ex *Example) registerEndpoints() (err error) { return err } - err = ex.Gorankusu.Httpd.RegisterEndpoint(&libhttp.Endpoint{ + err = ex.Gorankusu.Httpd.RegisterEndpoint(libhttp.Endpoint{ Method: libhttp.RequestMethodPost, Path: pathExample, RequestType: libhttp.RequestTypeForm, @@ -167,7 +167,7 @@ func (ex *Example) registerEndpoints() (err error) { return err } - err = ex.Gorankusu.Httpd.RegisterEndpoint(&libhttp.Endpoint{ + err = ex.Gorankusu.Httpd.RegisterEndpoint(libhttp.Endpoint{ Method: libhttp.RequestMethodPost, Path: pathExampleNamePage, RequestType: libhttp.RequestTypeJSON, @@ -178,7 +178,7 @@ func (ex *Example) registerEndpoints() (err error) { return err } - err = ex.Gorankusu.Httpd.RegisterEndpoint(&libhttp.Endpoint{ + err = ex.Gorankusu.Httpd.RegisterEndpoint(libhttp.Endpoint{ Method: libhttp.RequestMethodPost, Path: pathExampleRawbodyJSON, RequestType: libhttp.RequestTypeJSON, @@ -189,7 +189,7 @@ func (ex *Example) registerEndpoints() (err error) { return err } - err = ex.Gorankusu.Httpd.RegisterEndpoint(&libhttp.Endpoint{ + err = ex.Gorankusu.Httpd.RegisterEndpoint(libhttp.Endpoint{ Method: libhttp.RequestMethodPost, Path: pathExampleUpload, RequestType: libhttp.RequestTypeMultipartForm, |
