core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGoSourceTemplate = `` /* 416-byte string literal not displayed */

DefaultGoSourceTemplate ...

View Source
const DefaultGoTestTemplate = `` /* 535-byte string literal not displayed */

DefaultGoTestTemplate ...

View Source
const DefaultPlantUMLTemplate = `` /* 815-byte string literal not displayed */

DefaultPlantUMLTemplate ...

Variables

View Source
var DefaultClient = NewDefaultClient()

DefaultClient ...

View Source
var DefaultEngine = NewDefaultEngine()

DefaultEngine ...

View Source
var DefaultManager = NewDefaultManager()

DefaultManager ...

View Source
var DefaultResourceAccess = NewDefaultResourceAccess()

DefaultResourceAccess ...

Functions

This section is empty.

Types

type DeveloperClient added in v0.2.3

type DeveloperClient interface {
	Error() (err error)
	Generate()
	WithManager(m GeneratorManager) DeveloperClient
}

DeveloperClient ...

func NewDefaultClient

func NewDefaultClient() DeveloperClient

NewDefaultClient ...

type GeneratorManager added in v0.2.3

type GeneratorManager interface {
	Error() (err error)
	GenerateMultipleGoSources(in string) (out map[string]string)
	GenerateMultipleGoTests(in string) (out map[string]string)
	GenerateMultiplePlantUML(in string) (out map[string]string)
	GenerateSingleGoSource(in string) (out string)
	GenerateSingleGoTest(in string) (out string)
	GenerateSinglePlantUML(in string) (out string)
	WithEngine(e TemplateEngine) (m GeneratorManager)
	WithResourceAccess(ra GoResourceAccess) (m GeneratorManager)
}

GeneratorManager ...

func NewDefaultManager

func NewDefaultManager() GeneratorManager

NewDefaultManager ...

type GoResourceAccess added in v0.2.3

type GoResourceAccess interface {
	Error() (err error)
	GenerateMultiFiles(in *Source, tmpl string) (out map[string]string)
	GenerateSingleFile(in *Source, tmpl string) (out string)
}

GoResourceAccess ...

func NewDefaultResourceAccess

func NewDefaultResourceAccess() GoResourceAccess

NewDefaultResourceAccess ...

type Source

type Source struct {
	Package string
	Structs []SourceStruct
}

Source ...

type SourceStruct

type SourceStruct struct {
	Name    string
	Methods []string
}

SourceStruct ...

type TemplateEngine added in v0.2.3

type TemplateEngine interface {
	Error() (err error)
	Parse(in string) (src *Source)
}

TemplateEngine ...

func NewDefaultEngine

func NewDefaultEngine() TemplateEngine

NewDefaultEngine ...

Jump to

Keyboard shortcuts

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