Export the loaded manifest type as Manifest (closes #236) #238

Merged
clawbot merged 1 commits from issue-236-export-manifest-type into next 2026-10-21 13:12:21 +02:00
1 Commits
Author SHA1 Message Date
sneak 417c8d09f9 Export the loaded manifest type as Manifest (closes #236)
check / check (push) Waiting to run
Package mfer handed out a loaded manifest as the unexported type
manifest. Without a name for that type, a program using the library
could not keep a loaded manifest in a struct field or pass one to its
own functions. As sneak approved, the type is now exported as Manifest
with its fields kept private. Its existing methods (Files, Signer,
CreatedAt, String) are its whole API.

NewManifestFromReader and NewManifestFromFile return *Manifest. The two
lint suppressions that excused returning an unexported type from them
are removed. The type's doc comment now names the two loaders and drops
the pointer to the settled design question. String gets a doc comment.
A test in package mfer_test uses *mfer.Manifest from outside the
package.

Model: opus-5-5
2026-10-21 10:48:23 +00:00