Documentation ¶ Index ¶ func Split(path, txt string) (chunks []string, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Split ¶ func Split(path, txt string) (chunks []string, err error) SplitFile splits a Go source file or text string into chunks by top-level declarations. It uses Go's parser and AST packages to parse the source file. If txt is nil, it reads the file at path. Path must not be nil; it is used in the chunk headers. Types ¶ This section is empty. Source Files ¶ View all Source files split.go Click to show internal directories. Click to hide internal directories.