github.com/goplus/yap@v0.8.1/ytest/demo/match/hello/hello_yapt.gox (about)

     1  mock "foo.com", new(AppV2)
     2  
     3  id := "123"
     4  get "http://foo.com/p/${id}"
     5  
     6  ret 200
     7  json {
     8  	"id": id,
     9  }
    10  
    11  echo "OK"