gen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flutter

func Flutter(c *FlutterConfig) error

func Generate

func Generate(c *Config) error

func Handler

func Handler(c *Config) error

Types

type Config

type Config struct {
	Source  string
	Target  string
	Package string
}

type ExtendedType

type ExtendedType struct {
	*gen.Type
	TypeMappings []*TypeMapping
}

type FlutterConfig

type FlutterConfig struct {
	Config `mapstructure:",squash"`

	TypeMappings []*TypeMapping `mapstructure:"type_mappings"`
}

type TypeMapping

type TypeMapping struct {
	Go              string
	Dart            string
	Import          string
	ConverterImport string `mapstructure:"converter_import"`
	ConverterNeeded bool   `mapstructure:"converter_needed"`
}

Jump to

Keyboard shortcuts

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