bug.go 918 B

12345678910111213141516171819202122232425262728
  1. package buggo
  2. type Bug struct {
  3. Title string // The title of the bug in human readable format
  4. Description string // The description of the bug
  5. Status string // The status of the bug
  6. Tags []Tag // A slice of [buggo.Tag] structs
  7. Blockedby []Blocker // A slice of [buggo.Blocker] structs
  8. path string // The path to the bug
  9. machineTitle string // The machine parseable bug title
  10. }
  11. type (
  12. Tag string // A string representing a single tag
  13. Blocker string // A string representing a single blocker
  14. )
  15. // Reads a bug from disk
  16. func (b Bug) Read(path string) (bug Bug, err error) { return Bug{}, nil }
  17. // Writes a bug to disk
  18. func (b Bug) Write() (success bool, err error) { return false, nil }
  19. // Removes a bug from disk
  20. func (b Bug) Delete() (success bool, err error) { return false, nil }
  21. // Renders a bug as text
  22. func (b Bug) View() string { return "" }