Added tests for go_http_codegen

This commit is contained in:
Apoorv Dwivedi
2024-03-10 02:03:14 +05:30
parent c2a0a1a683
commit be33809173
2 changed files with 1269 additions and 3 deletions

View File

@ -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,