models

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category string

Category represents the type of entry

const (
	Research           Category = "調べ物"
	Programming        Category = "プログラマ"
	ResearchAndProgram Category = "調べてプログラマ"
)

type Entry

type Entry struct {
	ID            string    `json:"id"`
	Category      Category  `json:"category"`
	ResearchTopic string    `json:"research_topic,omitempty"`
	ProgramTitle  string    `json:"program_title,omitempty"`
	Satisfaction  int       `json:"satisfaction"` // 1-5 scale
	CreatedAt     time.Time `json:"created_at"`
}

Entry represents a single journal entry

func NewEntry

func NewEntry(category Category, satisfaction int) *Entry

NewEntry creates a new entry with a unique ID and current timestamp

Jump to

Keyboard shortcuts

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