sanitize

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package sanitize provides content-level checks for context files, such as detecting effectively empty files that contain only headers or whitespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EffectivelyEmpty

func EffectivelyEmpty(c []byte) bool

EffectivelyEmpty checks if a file only contains headers and whitespace.

Parameters:

  • c: File content to check

Returns:

  • bool: True if the file has no meaningful content (only headers, comments, whitespace)

Types

This section is empty.

Jump to

Keyboard shortcuts

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