This commit is contained in:
Travis Shears 2025-10-06 10:44:38 +02:00
parent 0f7e67f7c8
commit 2eb8a2e113

View file

@ -1,19 +0,0 @@
package microblog
import (
"fmt"
"log"
)
func main() {
client := NewPocketBaseClient()
fmt.Println("Getting page 1 of microblog posts")
posts, err := client.GetPosts(1)
if err != nil {
log.Printf("Error getting posts: %v", err)
} else {
fmt.Printf("Got first page of microblog posts\n")
fmt.Printf("First post: %v\n", posts[0])
}
}