changelog

package
v0.0.0-...-e826043 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFeed

func ToFeed(link string, entries []Entry) (*feeds.Feed, error)

ToFeed produces a github.com/gorilla/feeds.Feed that can be written to Atom or Rss

Types

type Entry

type Entry struct {
	Date    time.Time
	Comment string
	Updates []Update
}

Entry is an section of updates (or release comments) in a ChangeLog.txt

func Parse

func Parse(r io.Reader) ([]Entry, error)

Parse takes in a slackware ChangeLog.txt and returns its collections of Entries

func (Entry) SecurityFix

func (e Entry) SecurityFix() bool

SecurityFix is whether an update in this ChangeLog Entry includes a SecurityFix

func (Entry) ToChangeLog

func (e Entry) ToChangeLog() string

ToChangeLog reformats the struct as the text for ChangeLog.txt output

func (Entry) ToHTML

func (e Entry) ToHTML() string

ToHTML reformats the struct as the text for HTML output

type Update

type Update struct {
	Name    string
	Action  string
	Comment string
}

Update is a package or component that is updated in a ChangeLog Entry

func (Update) SecurityFix

func (u Update) SecurityFix() bool

SecurityFix that this update is a security fix (that the comment includes `(* Security fix *)`)

func (Update) ToChangeLog

func (u Update) ToChangeLog() string

ToChangeLog reformats the struct as the text for ChangeLog.txt output

Jump to

Keyboard shortcuts

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