privgate

package
v0.178.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0 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

Overview

Package privgate is the door against publishing a person's own file system in text sent to GitHub: ghissue and ghpr both pass every body and title through it, so that they cannot diverge in what they consider a disclosure.

Index

Constants

View Source
const WaiverFlag = "--allow-private-path"

WaiverFlag is the name of the flag that overrides the gate, quoted in its own refusal so that the reader does not have to look it up.

Variables

This section is empty.

Functions

func Body

func Body(text, waiver string) (string, error)

Body refuses a body that names a person's own file system.

⛔ The waiver takes a REASON and has no default. A boolean waiver is one keystroke and gets passed by reflex; a reason has to be written, and writing it is the moment to notice there is nothing to write. And it STAMPS: the reason is appended to the published text, where the recipient reads it too, so a waiver is a statement made in public and not a switch flicked in private.

func Title

func Title(t, waiver string) error

Title refuses a title that names a person's own file system, and NO waiver covers it.

⛔ The asymmetry is deliberate. A title is one line — it cannot carry the stamp that makes a waiver public — and it is the most-read text a forge has: it appears in every listing, every search result, every notification mail and every cross-reference, none of which an edit reaches. So a disclosure in a title is rewritten, not excused.

Types

This section is empty.

Jump to

Keyboard shortcuts

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