coder

package
v0.0.0-...-1295d18 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Mutate structs and interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfStructMapper

func GenerateSelfStructMapper(source, target *symbols.Symbol, resolver symbols.Resolver, funcName string, ref bool) (jen.Code, error)

func GenerateStruct

func GenerateStruct(sym *symbols.Symbol, resolver symbols.Resolver) (jen.Code, error)

func GenerateStructMapper

func GenerateStructMapper(source, target *symbols.Symbol, resolver symbols.Resolver, funcName string, ref bool) (jen.Code, error)

func GenerateValidation

func GenerateValidation(sym *symbols.Symbol, resolver symbols.Resolver, requiredField []string) (jen.Code, error)

func GenerateValidationByComment

func GenerateValidationByComment(sym *symbols.Symbol, resolver symbols.Resolver, requiredComment string) (jen.Code, error)

func MutateInterface

func MutateInterface(symInterface *symbols.Symbol, excludeMethods []string) (*symbols.Symbol, error)

func MutateStruct

func MutateStruct(symStruct *symbols.Symbol, excludeFields []string) (*symbols.Symbol, error)

Mutate struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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