litm

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LITMOptimizer

type LITMOptimizer struct {
	// contains filtered or unexported fields
}

func NewLITMOptimizer

func NewLITMOptimizer(maxTokens int) *LITMOptimizer

func (*LITMOptimizer) Optimize

func (o *LITMOptimizer) Optimize(content string) *LITMPosition

type LITMPosition

type LITMPosition struct {
	Content       string `json:"content"`
	OriginalSize  int    `json:"original_size"`
	OptimizedSize int    `json:"optimized_size"`
	Savings       int    `json:"savings"`
	Placement     string `json:"placement"`
}

Jump to

Keyboard shortcuts

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