From 8ba25dd9f5d823a4bd66967b33ee9d2624397129 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 15 Mar 2024 13:58:56 +0700 Subject: all: update module pakakeh.go to the tip --- example.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'example.go') diff --git a/example.go b/example.go index 8952abe..c17aab9 100644 --- a/example.go +++ b/example.go @@ -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, -- cgit v1.3