Home | History | Annotate | Download | only in format

Lines Matching defs:Source

2 // Use of this source code is governed by a BSD-style
5 // Package format implements standard formatting of Go source.
27 // nodes representing partial source files (for instance, if the node is
34 // Determine if we have a complete source file (file != nil).
73 // Source formats src in canonical gofmt style and returns the result
75 // correct Go source file, or a list of Go declarations or statements.
77 // If src is a partial source file, the leading and trailing space of src
80 // line of src containing code. Imports are not sorted for partial source files.
84 // execute that gofmt binary instead of calling Source.
86 func Source(src []byte) ([]byte, error) {
94 // Complete source file.