The wrapper for confluence-go-api
go get github.com/sugarshin/conn
package main
import (
"log"
conn "github.com/sugarshin/conn"
)
func main() {
client, err := conn.New("<confluence_endpoint>", "<confluence_username>", "<confluence_token_or_password>")
if err != nil {
log.Fatal("failed")
}
c, err := client.CreateChildPageContent(parentPageID, content)
}
Besides these, all confluence-go-api functions are available. ref: https://pkg.go.dev/github.com/virtomize/confluence-go-api#pkg-functions