mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 16:57:07 +08:00
Added tests for go_http_codegen
This commit is contained in:
@ -33,7 +33,7 @@ func main() {
|
||||
""";
|
||||
|
||||
String kTemplateRawBody = """
|
||||
{% if body %}body := strings.NewReader(`{{body}}`){% endif %}
|
||||
{% if body %}body := bytes.NewBuffer([]byte(`{{body}}`)){% endif %}
|
||||
|
||||
""";
|
||||
|
||||
@ -108,8 +108,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
fmt.Println(string(res))
|
||||
}
|
||||
""";
|
||||
}""";
|
||||
|
||||
String? getCode(
|
||||
RequestModel requestModel,
|
||||
|
Reference in New Issue
Block a user