Documentation
¶
Index ¶
- Variables
- type InParam
- type Options
- type TimeSpan
- type Xlst
- func (m *Xlst) MergeTimeSpan(timeSpans []*TimeSpan)
- func (m *Xlst) ReadTemplate(path string) error
- func (m *Xlst) Render(in interface{}) error
- func (m *Xlst) RenderMultipleSheet(options *Options, in ...InParam) error
- func (m *Xlst) RenderWithOptions(in interface{}, options *Options) error
- func (m *Xlst) Save(path string) error
- func (m *Xlst) Write(writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TimeLayout = "15:04"
)
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
WrapTextInAllCells bool
}
Options for render has only one property WrapTextInAllCells for wrapping text
type Xlst ¶
type Xlst struct {
// contains filtered or unexported fields
}
Xlst Represents template struct
func NewFromBinary ¶
NewFromBinary creates new Xlst struct puts binary tempate into and returns pointer to it
func (*Xlst) MergeTimeSpan ¶
MergeTimeSpan 根据时间合并行
func (*Xlst) ReadTemplate ¶
ReadTemplate reads template from disk and stores it in a struct
func (*Xlst) RenderMultipleSheet ¶
RenderMultipleSheet renders multipleSheet
func (*Xlst) RenderWithOptions ¶
RenderWithOptions renders report with options provided and stores it in a struct
Click to show internal directories.
Click to hide internal directories.