github.com/goplus/yap@v0.8.1/ytest/demo/basic/foo_ytest.gox (about) 1 server := new(foo) 2 server.main 3 runMock "foo.com", server 4 5 run "get /p/$id", => { 6 id := "123" 7 get "http://foo.com/p/${id}" 8 ret 200 9 json { 10 "id": id, 11 } 12 }