mirror of
https://github.com/foss42/apidash.git
synced 2025-05-23 09:17:04 +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,
|
||||
|
1267
test/codegen/go_http_codegen_test.dart
Normal file
1267
test/codegen/go_http_codegen_test.dart
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user