convert

package
v0.0.0-...-c4db822 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFile

func ConvertFile(sourceFile, targetFile string,
	replacer Replacer) error

ConvertFile changes the types in the go source and writes it to the file targetFile.

Types

type Replacer

type Replacer map[string]string

Replacer contains the replacement rules (key=from, value=to)

func (Replacer) Visit

func (r Replacer) Visit(node ast.Node) ast.Visitor

Visit replaces the type names according to the definition in the Replacer.

Jump to

Keyboard shortcuts

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