splitter

package
v3.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL