Help us shape the future of Go! Take the 2026 Go Developer Survey

history

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changelog

type Changelog struct {
	Timestamp time.Time  `xml:"Timestamp"`
	Success   bool       `xml:"Success"`
	Logs      []LogEntry `xml:"Logs>Log"`
	TODO      string     `xml:"TODO"`
}

func (*Changelog) AddLog

func (c *Changelog) AddLog(entry string)

type History

type History struct {
	XMLName    xml.Name    `xml:"History"`
	Changelogs []Changelog `xml:"Changelogs>Changelog"`
	FilePath   string      `xml:"-"`
}

func ReadHistoryFromFile

func ReadHistoryFromFile(path string) (*History, error)

func (*History) AppendChangelog

func (h *History) AppendChangelog(changelog Changelog)

func (*History) LastChangelogTimestamp

func (h *History) LastChangelogTimestamp() (time.Time, bool)

func (*History) SaveHistoryToFile

func (h *History) SaveHistoryToFile() error

type LogEntry

type LogEntry struct {
	Value string `xml:",chardata"`
}

func (LogEntry) MarshalXML

func (l LogEntry) MarshalXML(e *xml.Encoder, start xml.StartElement) error

Jump to

Keyboard shortcuts

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