jenutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(str string) string

Export makes sure that an identifier will be exported.

func Import added in v0.2.0

func Import(file *jen.File, typ types.Type)

Import adds an import to the generated file when the type is a named type.

func IsNillable added in v0.2.0

func IsNillable(typ types.Type) bool

IsNillable checks if a type is nillable. Useful for guarding type conversions.

func Type

func Type(stmt *jen.Statement, t types.Type) jen.Code

Type attaches a type to a statement based on a parsed type.

func Unexport

func Unexport(str string) string

Unexport makes sure that an identifier will be unexported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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