Name string
Title string
Align int
+ Hidden bool
ToCall MissingCol
}
header := ""
- for i, v := range g.cols {
- var b bytes.Buffer
- err = tr.Execute(&b, v)
+ for _, v := range g.cols {
+ if !v.Hidden {
+ var b bytes.Buffer
+ err = tr.Execute(&b, v)
- header += b.String()
- fmt.Println(i, v)
+ header += b.String()
+ //fmt.Println(i, v)
+ }
}
var b bytes.Buffer
}
}
- nnc := nc{Column: c, Value: v}
- fmt.Println(nnc)
+ if !c.Hidden {
+ nnc := nc{Column: c, Value: v}
+ //fmt.Println(nnc)
- var b bytes.Buffer
- err = tc.Execute(&b, nnc)
+ var b bytes.Buffer
+ err = tc.Execute(&b, nnc)
- ret += b.String()
+ ret += b.String()
+ }
}
var b bytes.Buffer