util

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi added in v0.9.0

func Atoi(s string) int

func GetExportedName added in v0.9.0

func GetExportedName(field string) string

func InStrings

func InStrings(item string, items []string) bool

func NewBinaryExpr added in v0.11.0

func NewBinaryExpr(left goast.Expr, operator token.Token, right goast.Expr) *goast.BinaryExpr

func NewCallExpr added in v0.11.0

func NewCallExpr(functionName string, args ...goast.Expr) *goast.CallExpr

func NewExprStmt added in v0.11.3

func NewExprStmt(expr goast.Expr) *goast.ExprStmt

func NewIdent added in v0.11.0

func NewIdent(name string) goast.Expr

func NewIdents added in v0.11.0

func NewIdents(names ...string) []goast.Expr

func NewIntLit added in v0.11.0

func NewIntLit(value int) *goast.BasicLit

func NewNil added in v0.12.0

func NewNil() *goast.BasicLit

func NewStringLit added in v0.11.0

func NewStringLit(value string) *goast.BasicLit

func ShowDiff added in v0.11.1

func ShowDiff(a, b string) string

ShowDiff will print two strings vertically next to each other so that line differences are easier to read.

func Ucfirst

func Ucfirst(word string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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