comment

package
v0.0.0-...-38d5e0a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasUncheckedCheckbox

func HasUncheckedCheckbox(body string) bool

HasUncheckedCheckbox reports whether the body contains at least one unchecked checkbox.

func IsMultiLineCommand

func IsMultiLineCommand(comment string) bool

IsMultiLineCommand checks if a comment contains multiple command lines

func Normalize

func Normalize(comment string) string

Normalize normalizes a comment for consistent processing by trimming whitespace and handling common escape sequences that might appear in command line inputs

func PreprocessSpecialCommands

func PreprocessSpecialCommands(commandStr string) string

PreprocessSpecialCommands handles special command transformations for complete command strings

func SplitCommandLines

func SplitCommandLines(comment string) []string

SplitCommandLines splits a multi-line comment into individual command lines

func SplitRawCommandLines

func SplitRawCommandLines(comment string) []string

SplitRawCommandLines splits a multi-line comment into individual command lines without preprocessing

func ToggleAllUncheckedCheckboxes

func ToggleAllUncheckedCheckboxes(body string) (string, int)

ToggleAllUncheckedCheckboxes returns a comment body where all unchecked checkboxes ([ ]) are marked as checked ([x]). The second return value indicates how many checkboxes were toggled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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