data

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser(pkg string) gopium.Parser

NewParser creates parser for single tests data

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields

} // struct size: 16 bytes; struct align: 8 bytes; struct aligned size: 16 bytes; - 🌺 gopium @1pkg

Parser defines tests data parser implementation that adds internal caching for results

func (Parser) ParseAst

func (p Parser) ParseAst(ctx context.Context, src ...byte) (*ast.Package, gopium.Locator, error)

ParseAst cache parser implementation

func (Parser) ParseTypes

func (p Parser) ParseTypes(ctx context.Context, src ...byte) (*types.Package, gopium.Locator, error)

ParseTypes parser implementation

type Writer

type Writer struct {
	Writer gopium.CategoryWriter `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

Writer defines tests data writter implementation which reuses underlying locator but purifies location generation

func (Writer) Category

func (w Writer) Category(cat string) error

Category writer implementation

func (Writer) Generate

func (w Writer) Generate(loc string) (io.WriteCloser, error)

Generate writer implementation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL