config

package
v0.1.1-0...-775f1d1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseConfig

type ParseConfig struct {
	VoidParam []VoidParam
	VoidField []VoidField
}

ParseConfig contains user-supplied configuration that affects the parsing process.

func FromFile

func FromFile(configFile string) (ParseConfig, error)

FromFile parses TOML configuration file and returns a new config.

func FromString

func FromString(config string) (cfg ParseConfig, err error)

FromString parses TOML configuration data and returns a new config.

type VoidField

type VoidField struct {
	TypeName    string
	Field       string
	ReplaceWith string
}

A VoidField defines a mapping between a void pointer struct field and its underlying type.

type VoidParam

type VoidParam struct {
	Function    string
	Parameter   string
	ReplaceWith string
}

A VoidParam defines a mapping between a void pointer parameter and its underlying type.

Jump to

Keyboard shortcuts

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