forked from extern/smegmesh
95f4495b0b
Simple what 8 words implementation
20 lines
258 B
Go
20 lines
258 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/tim-beatham/wgmesh/pkg/api"
|
|
)
|
|
|
|
func main() {
|
|
apiServer, err := api.NewSmegServer(api.ApiServerConf{
|
|
WordsFile: "./cmd/api/words.txt",
|
|
})
|
|
|
|
if err != nil {
|
|
log.Fatal(err.Error())
|
|
}
|
|
|
|
apiServer.Run(":8080")
|
|
}
|