A Screeps Library in Go (WIP)
Import and use like any other go module
import "github.com/screepers/go-screeps/client"
Simple example:
package main
import (
"log"
"github.com/screepers/go-screeps/config"
"github.com/screepers/go-screeps/screeps"
)
func main() {
conf := config.NewConfig()
server := conf.Servers["main"]
c := screeps.NewClient(server)
resp, err := c.AuthMe()
if err != nil {
log.Printf("Error: %v", err)
} else {
log.Printf("%v", resp)
}
}