transform

package
v0.0.0-...-909cb6c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenameOverrideMethods

func RenameOverrideMethods(conv *types.Convert)

RenameOverrideMethods is renamning all methods in interfaces to make sure that there is no override occuring

Types

type JsIndexRef

type JsIndexRef struct {
	Js, Go, Pkg, OwnPkg string
}

type SpecStatus

type SpecStatus struct {
	Group    string
	Title    string
	Url      string
	Comment  string
	Included bool
	// contains filtered or unexported fields
}

SpecStatus is resulting in an overview if all specifications are included in final result

type Transform

type Transform struct {
	// All is all changes on a single types.Type.
	All map[string]*onType

	// Global contains global actions that is changing
	// on multiple types.Type at once.
	Global []*onType

	// Status data from files
	Status []*SpecStatus

	// JsCrossRef is a javascript go type cross reference
	JsCrossRef []*JsIndexRef
	// contains filtered or unexported fields
}

Transform is main transformation control

func New

func New() *Transform

func (*Transform) Execute

func (t *Transform) Execute(conv *types.Convert) error

func (*Transform) Load

func (t *Transform) Load(filename, packageName string) error

func (*Transform) WriteCrossReference

func (t *Transform) WriteCrossReference(filename string) error

func (*Transform) WriteMarkdownStatus

func (t *Transform) WriteMarkdownStatus(filename string) error

Jump to

Keyboard shortcuts

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