Documentation ¶
Index ¶
- Constants
- Variables
- func Buffer() io.ReadWriter
- func Csvb(rw io.ReadWriter) gopium.Bytes
- func FieldsHtmlt(o gopium.Categorized, r gopium.Categorized) ([]byte, error)
- func Jsonb(sts []gopium.Struct) ([]byte, error)
- func Mdtb(sts []gopium.Struct) ([]byte, error)
- func SizeAlignMdt(o gopium.Categorized, r gopium.Categorized) ([]byte, error)
- func Xmlb(sts []gopium.Struct) ([]byte, error)
- type File
- type Files
- type Gofmt
- type Goprinter
- type Origin
- type Stdout
- type Suffix
Constants ¶
const ( GOPIUM = "gopium" GO = "go" JSON = "json" XML = "xml" CSV = "csv" MD = "md" HTML = "html" )
list of supported extensions
Variables ¶
var FSPT = combine(
flatten,
fpadfilter,
shuffle,
padsync,
tagsync,
reindex,
)
FSPT implements ast and combines: - flatten helper - fpadfilter helper - shuffle helper - padsync helper - tagsync helper - reindex helper
Functions ¶
func Csvb ¶
func Csvb(rw io.ReadWriter) gopium.Bytes
Csvb defines bytes implementation which serializes flat collection to formatted csv byte slice
func FieldsHtmlt ¶
func FieldsHtmlt(o gopium.Categorized, r gopium.Categorized) ([]byte, error)
FieldsHtmlt defines diff implementation which compares two categorized collections to formatted struct fields html table byte slice
func Jsonb ¶
Jsonb defines bytes implementation which uses json marshal with indent to serialize flat collection to byte slice
func Mdtb ¶
Mdtb defines bytes implementation which serializes flat collection to formatted markdown table byte slice
func SizeAlignMdt ¶
func SizeAlignMdt(o gopium.Categorized, r gopium.Categorized) ([]byte, error)
SizeAlignMdt defines diff implementation which compares two categorized collections to formatted markdown table byte slice
Types ¶
type File ¶
type File struct { Name string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"` Ext string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"` } // struct size: 32 bytes; struct align: 8 bytes; struct aligned size: 32 bytes; - 🌺 gopium @1pkg
File defines writer implementation which creates underlying single file with provided name and ext on provided loc
type Files ¶
type Files struct { Ext string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"` } // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg
Files defines writer implementation which creates underlying files list with provided ext on provided loc
type Gofmt ¶
type Gofmt struct{} // struct size: 0 bytes; struct align: 1 bytes; struct aligned size: 0 bytes; - 🌺 gopium @1pkg
Gofmt implements printer by using canonical ast go fmt printer
type Goprinter ¶
type Goprinter struct { // contains filtered or unexported fields } // struct size: 8 bytes; struct align: 8 bytes; struct aligned size: 8 bytes; - 🌺 gopium @1pkg
Goprinter implements printer by using ast go printer printer
func NewGoprinter ¶
NewGoprinter creates instances of goprinter with configs
type Origin ¶
type Origin struct { Writter gopium.Writer `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"` } // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg
Origin defines category writer implementation which simply uses underlying writter
type Stdout ¶
type Stdout struct{} // struct size: 0 bytes; struct align: 1 bytes; struct aligned size: 0 bytes; - 🌺 gopium @1pkg
Stdout defines writer implementation which only returns os stdout all the time
type Suffix ¶
type Suffix struct { Writter gopium.Writer `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"` Suffix string `gopium:"filter_pads,memory_pack,cache_rounding_cpu_l1_discrete,struct_annotate_comment,add_tag_group_force"` // contains filtered or unexported fields } // struct size: 64 bytes; struct align: 8 bytes; struct aligned size: 64 bytes; - 🌺 gopium @1pkg
Suffix defines category writer implementation which replaces category for writer with provided suffixed category