Files
chatservice_concept/api/example_data.go

16 lines
378 B
Go

package api
import "time"
var messages = []*Message{
{ID: "1", UserID: 1, Body: "hello", Timestamp: time.Now()},
{ID: "2", UserID: 2, Body: "world", Timestamp: time.Now()},
{ID: "3", UserID: 1, Body: "abababa", Timestamp: time.Now()},
{ID: "4", UserID: 2, Body: "bitch", Timestamp: time.Now()},
}
var users = []*User{
{ID: 1, Name: "duby"},
{ID: 2, Name: "astolfo"},
}