20 lines
388 B
Go
20 lines
388 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
|
|
"gemini_site/internal/microblog"
|
|
)
|
|
|
|
func main() {
|
|
client := microblog.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])
|
|
}
|
|
}
|