Documentation ¶
Overview ¶
formatter package defines a library for formatting Serulian source code.
Index ¶
- Variables
- func Format(path string, supportOlderSyntax bool, debug bool) bool
- func FormatSource(source string) (string, error)
- func Freeze(path string, importPatterns []string, vcsDevelopmentDirectories []string, ...) bool
- func FreezeAt(path string, importPattern string, commitOrTag CommitOrTag, ...) bool
- func Unfreeze(path string, importPatterns []string, vcsDevelopmentDirectories []string, ...) bool
- func UnfreezeAt(path string, importPattern string, vcsDevelopmentDirectories []string, ...) bool
- func Update(path string, importPatterns []string, vcsDevelopmentDirectories []string, ...) bool
- func Upgrade(path string, importPatterns []string, vcsDevelopmentDirectories []string, ...) bool
- type CommitOrTag
Constants ¶
This section is empty.
Variables ¶
View Source
var MAX_LINE_LENGTH = 80
Functions ¶
func FormatSource ¶
FormatSource formats the given Serulian source code.
func Freeze ¶
func Freeze(path string, importPatterns []string, vcsDevelopmentDirectories []string, debug bool) bool
Freeze formats the source files at the given path and freezes the specified VCS import patterns.
func FreezeAt ¶
func FreezeAt(path string, importPattern string, commitOrTag CommitOrTag, vcsDevelopmentDirectories []string, debug bool) bool
FreezeAt formats the source files at the given path and freezes the specified VCS import pattern at the given commit or tag.
func Unfreeze ¶
func Unfreeze(path string, importPatterns []string, vcsDevelopmentDirectories []string, debug bool) bool
Unfreeze formats the source files at the given path and unfreezes the specified VCS import patterns.
func UnfreezeAt ¶
func UnfreezeAt(path string, importPattern string, vcsDevelopmentDirectories []string, debug bool) bool
UnfreezeAt formats the source files at the given path and unfreezes the specified VCS import pattern.
Types ¶
type CommitOrTag ¶
type CommitOrTag struct {
// contains filtered or unexported fields
}
CommitOrTag represents a commit SHA or a tag.
func Commit ¶
func Commit(commitSha string) CommitOrTag
Commit returns a CommitOrTag representing a commit SHA.
Click to show internal directories.
Click to hide internal directories.