marker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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

Index

Constants

View Source
const (
	Base   = "base"
	Branch = "branch"
	Pool   = "pool"
	Tmp    = "tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Marker

type Marker struct {
	PGCheckout int       `json:"pgcheckout"`
	Kind       string    `json:"kind"`
	Base       string    `json:"base"`
	Gen        int       `json:"gen"`
	Branch     string    `json:"branch,omitempty"`
	CreatedAt  time.Time `json:"created_at"`
	ExpiresAt  time.Time `json:"expires_at,omitzero"`
	Strategy   string    `json:"strategy,omitempty"`
	Warnings   int       `json:"warnings,omitzero"`
	Open       *bool     `json:"open,omitempty"`
}

func New

func New(kind, base string, gen int) Marker

func Parse

func Parse(comment string) (Marker, bool)

func (Marker) IsOpen

func (m Marker) IsOpen() bool

func (Marker) ValidFor

func (m Marker) ValidFor(base string) bool

Jump to

Keyboard shortcuts

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