util

package
v0.0.0-...-d9c85e8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesFromPatterns

func FilesFromPatterns(patterns ...string) ([]string, error)

FilesFromPatterns generates a list of Go file matching the glob-style wildcard patterns. Both unit tests and vendored files are omitted.

func NewJSONEncoder

func NewJSONEncoder(w io.Writer) *json.Encoder

NewJSONEncoder json encoder with two-space indentation and no HTML escape characters

func ParseGoFile

func ParseGoFile(filename string) (*ast.File, error)

ParseGoFile parses a Go AST from the provided file

Types

This section is empty.

Jump to

Keyboard shortcuts

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