builder

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IdentifierString is pasted in the first line of each file and will mark a file as a pina golada generated file
	IdentifierString = "//THIS FILE WAS GENERATED USING PINA-GOLADA, PLEASE DO NOT EDIT"
)

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is able to build a file

func NewBuilder

func NewBuilder(target *inspector.AstInterface, interfaceAnnotation *PinaGoladaInterface, parser annotation.Parser) *Builder

NewBuilder Creates a new builder instance

func (Builder) BuildFile

func (b Builder) BuildFile() (by []byte, err error)

BuildFile Builds the file

type PinaGoladaInterface

type PinaGoladaInterface struct {
	Injector string `yaml:"injector"`
}

PinaGoladaInterface is the struct used for the pina golada interface annotation

func (PinaGoladaInterface) GetIdentifier

func (PinaGoladaInterface) GetIdentifier() string

GetIdentifier returns the identifier of the interface

type PinaGoladaMethod

type PinaGoladaMethod struct {
	Asset        string `yaml:"asset"`
	Compressor   string `yaml:"compressor"`
	AbsolutePath bool   `yaml:"absolute"`
}

PinaGoladaMethod is the struct used for the pina golada interface annotation

func (PinaGoladaMethod) GetIdentifier

func (PinaGoladaMethod) GetIdentifier() string

GetIdentifier returns the identifier of the interface

Jump to

Keyboard shortcuts

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