convert

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package convert provides a function to generate conversion functions for a vehicle struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(tmplData *schema.TemplateData, outputDir string, cfg Config) (err error)

Generate creates a conversion functions for each field of a model struct. as well as the entire model struct.

Types

type Config

type Config struct {
	// WithTest determines if test functions should be generated.
	WithTest bool
}

Config is the configuration for the conversion generator.

Jump to

Keyboard shortcuts

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