jenutils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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