generator

package
v1.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package generator provides functionality to generate functional option approach by given struct

Index

Constants

View Source
const CodeTemplate string = `` /* 746-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetType

func GetType(n ast.Expr) string

GetType determine type from expression

Types

type Tag

type Tag struct {
	Name     string
	DataType string
}

Tag represent tag data

func GetTags

func GetTags(f *ast.File, structName, tag string) []Tag

GetTags from existing tags

Jump to

Keyboard shortcuts

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