src

Go monorepo.
Log | Files | Refs

message.go (176B)


      1 package message
      2 
      3 import "time"
      4 
      5 type Message struct {
      6 	Text string
      7 	Time time.Time
      8 }
      9 
     10 func New(text string) *Message {
     11 	return &Message{
     12 		Text: text,
     13 		Time: time.Now(),
     14 	}
     15 }