diff --git a/backend/GO_API/APIFile/APIFile.exe b/backend/GO_API/APIFile/APIFile.exe new file mode 100644 index 0000000..a3e1ada Binary files /dev/null and b/backend/GO_API/APIFile/APIFile.exe differ diff --git a/backend/GO_API/APIFile/APIFile.go b/backend/GO_API/APIFile/APIFile.go new file mode 100644 index 0000000..74719b9 --- /dev/null +++ b/backend/GO_API/APIFile/APIFile.go @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "encoding/json" + "os" +) + +type Response struct { + StatusCode int `json:"statusCode"` + Headers map[string]string `json:"headers"` + Body string `json:"body"` +} + +func Handler() ([]byte, error) { + m := []Response{ + Response{ + StatusCode: 200, + Headers: map[string]string {"Content-Type": "application/json"}, + Body: "This is the first task", + }, + Response{ + StatusCode: 200, + Headers: map[string]string {"Content-Type": "application/json"}, + Body: "This is the second task", + }} + b, err := json.Marshal(m) + return b, err +} + +func main() { + b, err := Handler() + if err != nil { + fmt.Println("error:", err) + } + os.Stdout.Write(b) +} \ No newline at end of file