Open ufukty opened 9 months ago
... Create: { Method: "GET", Path: "/post" } Update: { Method: "PUT", Path: "/post/{id}" } Delete: { Method: "DELETE", Path: "/post/{id}" }
type Method int const ( GET = Method(iota) POST PATCH DELETE PUT ) type Endpoint struct { Method Method `yaml:"Method"` Path string `yaml:"Path"` }
Considerations:
string
int
The definitive solution to this problem might be allowing user to specify desired targets to disable automatic type resolution on, and manually assign given [existing] type.
Considerations:
string
<>int
above)