render

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFile embed.FS

Functions

func Render

func Render(param *GeneratedParam) ([]byte, error)

Types

type FileField

type FileField struct {
	Name             string
	LocalName        string
	AssignTargetName string
	Tag              string
	Base64           bool
}

type GeneratedParam

type GeneratedParam struct {
	EarlierGo116 bool
	Package      string
	Extend       Struct
	FileName     string
}

type Struct

type Struct struct {
	Name   string
	Parent string
	Fields []*FileField
}

func (*Struct) HasBase64Encoding

func (s *Struct) HasBase64Encoding() bool

Jump to

Keyboard shortcuts

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