package
Version:
v0.0.0-...-52d6a69
Opens a new window with list of versions in this module.
Published: Jun 19, 2019
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Format(fset *token.FileSet, file *ast.File, ...) ([]byte, error)
-
func IsSpace(b byte) bool
-
func Parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) (file *ast.File, sourceAdj func(src []byte, indent int) []byte, indentAdj int, ...)
Format formats the given package file originally obtained from src
and adjusts the result based on the original source via sourceAdj
and indentAdj.
IsSpace reports whether the byte is a space character.
IsSpace defines a space as being among the following bytes: ' ', '\t', '\n' and '\r'.
Parse parses src, which was read from the named file,
as a Go source file, declaration, or statement list.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.