main.go 455 B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. "fmt"
  4. "github.com/dabory/abango-rest"
  5. e "github.com/dabory/abango-rest/etc"
  6. )
  7. func main() {
  8. // params, _ := e.FileToStr("json-send/login-params.json")
  9. askuri := e.GetAskName()
  10. body, _ := e.FileToStr("json-request/" + askuri + ".json")
  11. retstr, status, _ := abango.RunRouterPostNormal(askuri, body)
  12. e.StrToFile("json-response/"+askuri+".json", retstr)
  13. fmt.Println("Status: ", status)
  14. fmt.Println("Return: ", retstr)
  15. }