abstraction

This commit is contained in:
2024-12-29 19:48:41 -05:00
parent fe4b5b6033
commit 0b36bcbd6a
8 changed files with 221 additions and 193 deletions

13
api/example_data.go Normal file
View File

@@ -0,0 +1,13 @@
package api
var messages = []*Message{
{ID: "1", UserID: 1, Body: "hello", Timestamp: 1234567890},
{ID: "2", UserID: 2, Body: "world", Timestamp: 1234567890},
{ID: "3", UserID: 1, Body: "abababa", Timestamp: 1234567890},
{ID: "4", UserID: 2, Body: "bitch", Timestamp: 1234567890},
}
var users = []*User{
{ID: 1, Name: "duby"},
{ID: 2, Name: "astolfo"},
}