Get
should return a value RVV-A0006 96 tc.Ctx.WriteString(tc.Ctx.Input.Query(":id") + tc.Ctx.Input.Query(":page"))
97}
98
99func (tc *TestController) GetEmptyBody() { 100 var res []byte
101 tc.Ctx.Output.Body(res)
102}
92 tc.Ctx.Input.Query(":first") + "+" + tc.Ctx.Input.Query("learn"))
93}
94
95func (tc *TestController) GetManyRouter() { 96 tc.Ctx.WriteString(tc.Ctx.Input.Query(":id") + tc.Ctx.Input.Query(":page"))
97}
98
87 tc.Ctx.Output.Body([]byte(tc.URLFor(".Myext")))
88}
89
90func (tc *TestController) GetParams() { 91 tc.Ctx.WriteString(tc.Ctx.Input.Query(":last") + "+" +
92 tc.Ctx.Input.Query(":first") + "+" + tc.Ctx.Input.Query("learn"))
93}
83 tc.Ctx.Output.Body([]byte(tc.Ctx.Input.Param(":ext")))
84}
85
86func (tc *TestController) GetURL() { 87 tc.Ctx.Output.Body([]byte(tc.URLFor(".Myext")))
88}
89
68 tc.Ctx.Output.Body([]byte(contentLevel1Replacement))
69}
70
71func (tc *TestPostUnregController) GetFixedLevel2() { 72 tc.Ctx.Output.Body([]byte(contentLevel2Replacement))
73}
74
Typically, functions with names prefixed with Get are supposed to return a value.
func GetData(n int) {
fmt.Println(10 - n)
}
func GetData(n int) int {
fmt.Println(10 - n)
return 10 - n
}