gen

package
v0.0.0-...-4c25614 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(s []byte, packName string, main bool) *jen.File

GenerateFile Generates a jennifer file given a series of bytes a package name and if you want a main function or not

func GenerateFileBytes

func GenerateFileBytes(s []byte, packName string, main bool, formating bool) ([]byte, error)

GenerateFileBytes takes an array of bytes and transforms it into jennifer code

func MakeJenCode

func MakeJenCode(s ast.Decl) (jen.Code, string)

func ParseFile

func ParseFile(code []byte) *ast.File

Types

This section is empty.

Jump to

Keyboard shortcuts

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