official

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0 Imports: 9 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 Info added in v0.37.0

func Info() domain.SourceInfo

Info describes the list of official domains for GET /v1/sources: facts Arnakoff checked itself, kept in this repository (docs/sources.md).

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