change: use pointer type for TStep.Request

This commit is contained in:
debugtalk
2021-09-20 10:47:21 +08:00
parent 08122f589b
commit f4874c525f
2 changed files with 2 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ type TValidator struct {
type TStep struct {
Name string `json:"name"`
Request TRequest `json:"request"`
Request *TRequest `json:"request"`
Variables Variables `json:"variables"`
SetupHooks []string `json:"setup_hooks"`
TeardownHooks []string `json:"teardown_hooks"`

View File

@@ -4,6 +4,7 @@ func RunRequest(name string) *Request {
return &Request{
TStep: &TStep{
Name: name,
Request: &TRequest{},
Variables: make(Variables),
},
}