hookgen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookTemplate

type HookTemplate struct {
	Imports        []string
	InterfaceName  string
	HookName       string
	PackageName    string
	MethodName     string
	MethodDeclArgs []string
	MethodCallArgs []string

	Safe bool
}

func (HookTemplate) String

func (this HookTemplate) String() string

func (HookTemplate) Write

func (this HookTemplate) Write(w io.Writer) error

type Hookgen

type Hookgen struct {
	Src string
	Dst string

	Safe bool

	Formatter string
}

func (*Hookgen) Generate

func (this *Hookgen) Generate(w io.Writer, i *types.Interface) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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