splitter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountFileSize

func CountFileSize(filePath string) (int, error)

CountFileSize returns the size of a file in bytes

func ReadFileLines

func ReadFileLines(filePath string) ([]string, error)

ReadFileLines reads a file and returns it as a slice of lines

Types

type SplitResult

type SplitResult struct {
	PartNumber int
	TotalParts int
	Content    string
	Size       int
}

SplitResult represents a split part of the diff

func SplitDiffFile

func SplitDiffFile(inputPath string, maxLength int) ([]SplitResult, error)

SplitDiffFile splits a markdown diff file if it exceeds the max length Returns the list of split results

Jump to

Keyboard shortcuts

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