official

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package official reads the reference list of official domains often imitated, shipped with the binary (domains.csv, documented in docs/sources.md).

Index

Constants

Source names the reference list among the sources.

Variables

View Source
var ErrFormat = errors.New("invalid official domains file")

ErrFormat means a reference list departs from its format. The error locates the line.

Functions

func Load

func Load() (signal.Officials, error)

Load reads the reference list shipped with the binary.

func Parse

func Parse(r io.Reader) (signal.Officials, error)

Parse reads a reference list: a CSV file with header, one official site per row, alternates and names separated by "|". A malformed file is rejected with ErrFormat, a malformed row with signal.ErrInvalidOfficial.

Types

This section is empty.

Jump to

Keyboard shortcuts

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