function 'GetContent' seems to be a getter but it does not return any result
133func (*BaseAdapter) Static(_, _ string) { panic("not implement") }
134
135// GetContent is a helper function of adapter.Content
136func (base *BaseAdapter) GetContent(ctx interface{}, getPanelFn types.GetPanelFn, wf WebFrameWork,137 navButtons types.Buttons, fn context.NodeProcessor) {
138
139 var (
Description
Typically, functions with names prefixed with Get are supposed to return a value.
Bad practice
func GetData(n int) {
fmt.Println(10 - n)
}
Recommended
func GetData(n int) int {
fmt.Println(10 - n)
return 10 - n
}