base

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleInfo

type ModuleInfo struct {
	Package string
	Module  string
}

func (*ModuleInfo) GetModuleName

func (m *ModuleInfo) GetModuleName() string

func (*ModuleInfo) GetPackageName

func (m *ModuleInfo) GetPackageName() string

func (*ModuleInfo) ReplaceImplement

func (m *ModuleInfo) ReplaceImplement(in []byte, data []byte) []byte

func (*ModuleInfo) ReplaceImplementMethod added in v0.0.2

func (m *ModuleInfo) ReplaceImplementMethod(in []byte, data map[string]string) []byte

func (*ModuleInfo) ReplaceTemplate

func (m *ModuleInfo) ReplaceTemplate(in []byte) []byte

func (*ModuleInfo) ReplaceTemplateMethod added in v0.0.2

func (m *ModuleInfo) ReplaceTemplateMethod(in []byte, data map[string]string) []byte

type ModuleInfoInterface

type ModuleInfoInterface interface {
	GetPackageName() string
	GetModuleName() string
	ReplaceTemplate(data []byte) []byte
	ReplaceTemplateMethod(in []byte, data map[string]string) []byte
	ReplaceImplement(in []byte, data []byte) []byte
	ReplaceImplementMethod(in []byte, data map[string]string) []byte
}

func NewModuleInfo

func NewModuleInfo(name string) ModuleInfoInterface

type Template

type Template struct {
	Interface []byte
	Implement []byte
	Test      []byte
}

type TemplateInterface

type TemplateInterface interface {
	GetInterface() []byte
	GetImplement() []byte
	GetTest() []byte
}

Jump to

Keyboard shortcuts

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