jast

package
v0.0.0-...-c665954 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package jast is a collection of utilities for converting AST to jennifer. Note that jast is experimental and the API will change.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(imports map[string]string, uses map[*ast.Ident]types.Object) *Cache

New creates a new jast cache.

func (*Cache) Expr

func (c *Cache) Expr(spec ast.Expr) *jen.Statement

func (*Cache) FieldList

func (c *Cache) FieldList(g *jen.Group, fl *ast.FieldList)

FieldList adds fields to a group - works for both Params() and Struct()

Jump to

Keyboard shortcuts

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