docutil

package
v0.8.2 Latest Latest
Warning

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

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

Documentation

Overview

Package docutil provides small helpers for documentation generators to share.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDateLine

func ExtractDateLine(content, prefix string) string

ExtractDateLine returns the value of a date-like header line matching the given prefix. Example: prefix ":created-date:" matches a line like ":created-date: March 23, 2026" and returns "March 23, 2026".

func NormalizeForCompare

func NormalizeForCompare(s string) string

NormalizeForCompare returns a version of the input with volatile header lines removed. Currently strips :created-date: and :revdate: lines so generators can perform stable comparisons and avoid rewriting files when only the date changes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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