Skip to content

struct: map uint8 fields as unsigned integers - #423

Closed
Narek-Khachikyan wants to merge 1 commit into
go-ini:mainfrom
Narek-Khachikyan:fix/map-uint8
Closed

Narek-Khachikyan wants to merge 1 commit into
go-ini:mainfrom
Narek-Khachikyan:fix/map-uint8

Conversation

@Narek-Khachikyan

Copy link
Copy Markdown

Describe the pull request

Mapping a uint8 field returns an unsupported-type error even though reflection already writes that type. Include uint8 in unsigned field decoding, including byte aliases and named and pointer types. Use complex fields in the existing unsupported-type fixtures so their negative assertions remain valid.

Fixes #302.

Proof: six regression cases fail before the fix and pass afterward, including zero, 255, strict mapping, and reflection round trips. go test -race ./..., go vet ./..., and golangci-lint run pass.

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

@Narek-Khachikyan Narek-Khachikyan closed this by deleting the head repository Nov 9, 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.

MapTo cannot parse values as uint8

1 participant