Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Excel ¶
type Excel struct {
	Header             string
	FileName           string
	Space              bool
	Delimeter          string
	Sheet              string
	HeadStyle          excelize.Style
	NormStyle          excelize.Style
}
    func NewExcel ¶
func NewExcel() *Excel
NewExcel Returns type Excel with some defaults.
Align: left NoHeader: False Wrap: false Indent: "" (empty) LineBetweenRow: false Columns: All (empty)
New Excel gives defaults. You can change these after NewExcel or just set it using the struct as shown in NewExcel. your own use might look like this myexcek := nsres.Excel{Delimiter: "|"
type Grid ¶
type Grid struct {
	Render           string
	Align            string
	NoHeader         bool
	Wrap             bool
	Indent           string
	NoLineBetweenRow bool
	Space            bool
	Columns          string
	Delimiter        string
	Number           bool
	OutDelimiter     string
	Headline         string
}
    Grid Render Used for Gridout function. Renders output text in a grid, text, tab.
Render: simple Simple tab delimited with underlined header. plain pretty much just strips the "," for a space tab Tab spaced output html Output in simple HTML. Header has grey background with thin lines between cells mysql Looks similar to mysql shell output grid uses ANSI Graphics. Not compatible with all terminals gridt MySQL Align: Right, left or center NoHeader: don't print a header Wrap: wrap cell output NoLineBetweenRow: put a blank line inbetween each row Columns: List the columns you want output. Space: Do not trim spaces from column. "1, 2" will output "1| 2" instead of "1|2" Delimeter: Delimeter between text. Default is a "," Number -- automatically add number the output
func NewGrid ¶
func NewGrid() *Grid
NewGrid Returns a Grid with some defaults.
Render: mysql Align: left NoHeader: False Wrap: false Indent: "" (empty) LineBetweenRow: false Columns: All (empty)
New grid gives defaults. You can change these after NewGrid or just set it using the struct as shown in NewGrid. your own use might look like this mygrid := nsres.Grid{Render: "grid", Align: "Right", NoHeader: false, Wrap: false, Indent: "\t", LineBetweenRow: false, Space: false, Columns: "", Delimiter: "|"