Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallExprArgs

func CallExprArgs(stackIndex int) ([]ast.Expr, error)

    CallExprArgs returns the ast.Expr slice for the args of an ast.CallExpr at the index in the call stack.

    func FormatNode

    func FormatNode(node ast.Node) (string, error)

      FormatNode using go/format.Node and return the result as a string

      func FormattedCallExprArg

      func FormattedCallExprArg(stackIndex int, argPos int) (string, error)

        FormattedCallExprArg returns the argument from an ast.CallExpr at the index in the call stack. The argument is formatted using FormatNode.

        func GoVersionLessThan

        func GoVersionLessThan(major, minor int64) bool

          GoVersionLessThan returns true if runtime.Version() is semantically less than version major.minor. Returns false if a release version can not be parsed from runtime.Version().

          Types

          This section is empty.