problemrec

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT 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 problemrec makes the problem recorders of maild and mailctl (ADR-0049): github.com/frostyard/std/problems with Frostmail's app ID and the release version of the build, or an inert recorder for a build that is no release.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(build string, component problems.Component, opts ...problems.Option) *problems.Recorder

New returns the recorder of component for the build version build. It is inert unless Version(build) is a release semver (1.2.3 or 1.2.3-rc.1); its Err says why.

func Version

func Version(build string) string

Version maps a build's version (the ldflags main.version) to the version of its problem records: it strips 1 leading "v", so that `make build` on the tag v0.4.1 gives 0.4.1. It never invents a version: a placeholder (dev, flatpak, 0.0.0-<commit>-snapshot, a git describe past a tag such as v0.4.1-3-gabc1234 or one that ends in -dirty) stays as it is, and the recorder that New makes of it is inert.

Types

This section is empty.

Jump to

Keyboard shortcuts

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