aboutsummaryrefslogtreecommitdiff
path: root/example.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-15 13:58:56 +0700
committerShulhan <ms@kilabit.info>2024-03-15 13:58:56 +0700
commit8ba25dd9f5d823a4bd66967b33ee9d2624397129 (patch)
tree840b555620baf86b70f92f9553741a5ac39654eb /example.go
parentcb9e9ecf8466386621954acdafc460ecd0c3f82f (diff)
downloadgorankusu-8ba25dd9f5d823a4bd66967b33ee9d2624397129.tar.xz
all: update module pakakeh.go to the tip
Diffstat (limited to 'example.go')
-rw-r--r--example.go12
1 files changed, 6 insertions, 6 deletions
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,