No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Humphrey Drummond 8247d6ac30 Migrate module path from github.com to codeberg.org
Codeberg is the primary source; GitHub is a mirror.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:03:18 +00:00
.vscode Add client code, tests, taskfile, changelog, and readme 2026-03-09 16:22:47 +00:00
.gitignore Initial commit 2026-02-27 19:46:39 +00:00
CHANGELOG.md Add client code, tests, taskfile, changelog, and readme 2026-03-09 16:22:47 +00:00
client.go Add client code, tests, taskfile, changelog, and readme 2026-03-09 16:22:47 +00:00
client_test.go Add client code, tests, taskfile, changelog, and readme 2026-03-09 16:22:47 +00:00
go.mod Migrate module path from github.com to codeberg.org 2026-03-26 23:03:18 +00:00
LICENSE Initial commit 2026-02-27 19:46:39 +00:00
README.md Migrate module path from github.com to codeberg.org 2026-03-26 23:03:18 +00:00
task-plus.yml Add task-plus.yml and links section to README 2026-03-09 16:25:00 +00:00
Taskfile.yml Add client code, tests, taskfile, changelog, and readme 2026-03-09 16:22:47 +00:00

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,
})
Documentation https://h3-godocs-client.statichost.page/
Source (Codeberg) https://codeberg.org/hum3/godocs-client
Mirror (GitHub) https://github.com/drummonds/godocs-client