package main import ( "federated.computer/wp-sync-slowtwitch/services/slowtwitch" "fmt" ) const baseUrl = "https://go-api-playground.local/wp-json/wp/v2/" const wordpressKey = "admin" const wordpressSecret = "S34E keY1 A1uX 6ncs Rx4T f21W" const slowtwitchAdminUser = "admin" const slowtwitchAdminPass = "yxnh93Ybbz2Nm8#mp28zCVv" const slowtwitchDbUrl = "slowtwitch.northend.network" const slowtwitchDbPort = "3306" const slowtwitchDbName = "slowtwitch" var appCache AppCache func main() { // TODO Use cached data to correctly build post form submissions slowtwitchDB, err := slowtwitch.Connect(slowtwitchAdminUser, slowtwitchAdminPass, slowtwitchDbUrl, slowtwitchDbPort, slowtwitchDbName) if err != nil { fmt.Println(err) } categories := slowtwitch.GetCategories(slowtwitchDB) for _, category := range categories { fmt.Println(category.FullName) } }