brag

package
v0.0.0-...-ee12cf7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntry

func AddEntry(entryText string) error

func ClearEntries

func ClearEntries() error

func ExportEntries

func ExportEntries(fileFormat string)

func InitBragDocument

func InitBragDocument() error

InitBragDocument initializes the brag document file if it doesn't exist

func ListEntries

func ListEntries()

func RemoveEntry

func RemoveEntry(entryID int) error

Types

type BragDocument

type BragDocument struct {
	Entries []Entry `json:"entries"`
}

BragDocument represents the brag document.

type Entry

type Entry struct {
	ID        int       `json:"id"`
	Timestamp time.Time `json:"timestamp"`
	Text      string    `json:"text"`
}

Entry represents an entry in the brag document.

Jump to

Keyboard shortcuts

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