Skip to content

docs: document available type class matchers in README.md - #164

Open
AdamMagued wants to merge 1 commit into
h2non:masterfrom
AdamMagued:doc-type-classes-156
Open

AdamMagued wants to merge 1 commit into
h2non:masterfrom
AdamMagued:doc-type-classes-156

Conversation

@AdamMagued

Copy link
Copy Markdown

Summary

Document the available type class matchers (IsImage/Image, IsAudio/Audio, IsVideo/Video, IsFont/Font, IsArchive/Archive, IsDocument/Document, IsApplication/Application) and extension/type matching helpers in README.md.

Previously, the "Check type class" section only demonstrated IsImage, leaving the full range of supported type class functions undocumented in the main README.

Changes

  • In README.md, document all built-in type class checkers and matchers along with Is/IsExtension/IsType/IsMIME.
  • In kind_test.go, add test cases verifying all category functions (Audio/IsAudio, Video/IsVideo, Font/IsFont, Archive/IsArchive, Document/IsDocument, Application/IsApplication).
  • In filetype_test.go, add test coverage for IsExtension.

Verification

Run unit tests with race detector:

go test -v -race ./...

All tests pass.

Fixes #156

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.

Improve type class visibility in README.md

1 participant