No description
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Codeberg is the primary source; GitHub is a mirror. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
| .vscode | ||
| .gitignore | ||
| CHANGELOG.md | ||
| client.go | ||
| client_test.go | ||
| go.mod | ||
| LICENSE | ||
| README.md | ||
| task-plus.yml | ||
| Taskfile.yml | ||
godocs-client
Go HTTP client for the godocs API.
Usage
import godocsclient "github.com/drummonds/godocs-client"
client := godocsclient.NewClient("http://localhost:8080")
// Upload a file
result, err := client.Upload("/path/to/file.pdf", "destination/path")
// Upload bytes
result, err := client.UploadBytes(data, "file.pdf", "destination/path")
// Tags
tagID, err := client.EnsureTag("my-tag")
err = client.AddTag(result.ULID, tagID)
// Metadata
err = client.UpdateMetadata(result.ULID, godocsclient.MetadataUpdate{
Author: &author,
})
Links
| Documentation | https://h3-godocs-client.statichost.page/ |
| Source (Codeberg) | https://codeberg.org/hum3/godocs-client |
| Mirror (GitHub) | https://github.com/drummonds/godocs-client |