Refactor to improve later; fix comments in single line
This commit is contained in:
1 parent
71e7c2f72f
commit
77cadb7a0d
7 files changed
+238
-138
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package goapi
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
/*@API*/
|
||||
type ARequestStruct struct {
|
||||
A *string
|
||||
B int64
|
||||
C time.Time
|
||||
D *string
|
||||
}
|
||||
|
||||
/*@API*/
|
||||
type AResponseStruct struct {
|
||||
A string
|
||||
B int64
|
||||
C time.Time
|
||||
D *string
|
||||
}
|
||||
|
||||
/*
|
||||
@API
|
||||
PATH: /someapi
|
||||
*/
|
||||
func SomeAPI(ctx context.Context, a *ARequestStruct) (*AResponseStruct, error) {
|
||||
return nil, nil
|
||||
}
|
||||
Reference in new issue
Block a user