diff options
author | hanemile <mail@emile.space> | 2020-07-19 13:15:31 +0200 |
---|---|---|
committer | hanemile <mail@emile.space> | 2020-07-19 13:15:31 +0200 |
commit | 50500b9e8eb0b891f598e66801f5dcca55d1186e (patch) | |
tree | 5f07d91b90d95cc1634bccdb5a53aaae0d9fff9f /src/structs/talk.go | |
parent | 0773cb78d1e2ae090602e5c89e7951b16dbeb21c (diff) |
src update
Diffstat (limited to 'src/structs/talk.go')
-rw-r--r-- | src/structs/talk.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/structs/talk.go b/src/structs/talk.go new file mode 100644 index 0000000..ec502c6 --- /dev/null +++ b/src/structs/talk.go @@ -0,0 +1,26 @@ +package structs + +import ( + "time" + + "github.com/google/uuid" +) + +// Talk defines a talk +type Talk struct { + // Meta + UUID uuid.UUID `pg:"type:uuid"` + ID int `pg:",pk"` + + // Actual Talk information + Title string + Description string + Slides string + Nickname string + + Date time.Time // the actual date entered + FormattedDate string // the date formatted in a way that can be displayed nicely + + // Organization + Upcoming bool `pg:",use_zero"` +} |