434 B
434 B
package main
import ( "fmt" "github.com/appwrite/sdk-for-go" )
func main() { var client := appwrite.Client{}
client.SetProject("")
client.SetKey("")
var service := appwrite.Database{
client: &client
}
var response, error := service.CreateDocument("[COLLECTION_ID]", , [], [], "[PARENT_DOCUMENT]", "", "assign")
if error != nil {
panic(error)
}
fmt.Println(response)
}