package
Version:
v0.0.0-...-e040fd4
Opens a new window with list of versions in this module.
Published: Apr 16, 2015
License: BSD-3-Clause
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.