Skip to content

docs: document inspecting stdlib, dependency, and arbitrary library types#27

Merged
peczenyj merged 1 commit into
develfrom
feature/readme-inspect-types
May 26, 2026
Merged

docs: document inspecting stdlib, dependency, and arbitrary library types#27
peczenyj merged 1 commit into
develfrom
feature/readme-inspect-types

Conversation

@peczenyj

Copy link
Copy Markdown
Owner

Adds an "Inspecting types you don't own" subsection to the README (under Modes → Inspect layout), covering a capability that already works but wasn't documented:

  • inspecting stdlib struct types by import path + -type (time.Time)
  • inspecting dependency types already in go.mod (errgroup.Group)
  • the throwaway-module recipe for arbitrary libraries
  • that resolution is against the current module's go.mod, not $GOPATH/the module cache
  • that bare scalar builtins (int/string) aren't inspectable (no fields)

All example outputs were verified against a freshly built binary.

Docs-only; no associated issue.

🤖 Generated with Claude Code

…ypes

Add an "Inspecting types you don't own" subsection covering:
- stdlib struct types by import path + -type (time.Time)
- dependency types already in go.mod (errgroup.Group)
- the throwaway-module recipe for arbitrary libraries
- that resolution is against the current module's go.mod, not $GOPATH
- that bare scalar builtins (int/string) aren't inspectable (no fields)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@peczenyj peczenyj merged commit 1bda7f2 into devel May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant