just a runnable instance of lrcd
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add welcome

+3 -1
+3 -1
main.go
··· 1 1 package main 2 2 3 3 import ( 4 + "fmt" 4 5 "github.com/rachel-mp4/lrcd" 5 6 "net/http" 6 7 "os" 7 8 ) 8 9 9 10 func main() { 10 - server, err := lrcd.NewServer(lrcd.WithLogging(os.Stdout, true)) 11 + server, err := lrcd.NewServer(lrcd.WithLogging(os.Stdout, false), lrcd.WithWelcome("welcome to the beginning of the rest of your life")) 11 12 if err != nil { 12 13 panic(err) 13 14 } ··· 15 16 if err != nil { 16 17 panic(err) 17 18 } 19 + fmt.Println("serving lrcd on localhost:8080") 18 20 http.ListenAndServe(":8080", server.WSHandler()) 19 21 }