Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
yuce
/
mapstructure
Public
forked from
mitchellh/mapstructure
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
mapstructure
mapstructure_test.go
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 21, 2025
Changed default tag name to "ms"
yuce
committed
c4d4f21
View commit details
Copy full SHA for c4d4f21
View code at this point
Browse repository at this point
Commits on Apr 23, 2022
TestNotEmptyByteSlice added
ozgursoy
committed
c9d3eae
View commit details
Copy full SHA for c9d3eae
View code at this point
Browse repository at this point
Commits on Apr 20, 2022
Merge pull request #225 from SaschaRoland/unset-fields
Show description for 8385cfa
mitchellh
authored
8385cfa
View commit details
Copy full SHA for 8385cfa
View code at this point
Browse repository at this point
Merge pull request #280 from kralicky/master
Show description for a124967
mitchellh
authored
a124967
View commit details
Copy full SHA for a124967
View code at this point
Browse repository at this point
Merge pull request #277 from radeksimko/ignore-untagged-fields
Show description for 7c5722f
mitchellh
authored
7c5722f
View commit details
Copy full SHA for 7c5722f
View code at this point
Browse repository at this point
Merge pull request #271 from vlanse/fix/decode-nested-pointer-structs-to-map
Show description for 2328018
mitchellh
authored
2328018
View commit details
Copy full SHA for 2328018
View code at this point
Browse repository at this point
clean up test for decoding slice to array
mitchellh
committed
582f84a
View commit details
Copy full SHA for 582f84a
View code at this point
Browse repository at this point
Fix squash not working when decoder config option is set and squash struct tags are present
kralicky
committed
7bbefaa
View commit details
Copy full SHA for 7bbefaa
View code at this point
Browse repository at this point
Commits on Mar 25, 2022
DecoderConfig: introduce IgnoreUntaggedFields
radeksimko
committed
b37a0d6
View commit details
Copy full SHA for b37a0d6
View code at this point
Browse repository at this point
Commits on Jan 21, 2022
allow decoding nested struct ptrs to map
vlanse
committed
94c41ea
View commit details
Copy full SHA for 94c41ea
View code at this point
Browse repository at this point
Commits on Dec 23, 2021
test: add a test to reproduce the bug
Show description for 74cdd45
suzuki-shunsuke
committed
74cdd45
View commit details
Copy full SHA for 74cdd45
View code at this point
Browse repository at this point
Commits on Dec 1, 2021
Fix unittest
kevin.lin
committed
ea0720b
View commit details
Copy full SHA for ea0720b
View code at this point
Browse repository at this point
Commits on Nov 30, 2021
Add support for parsing json.Number to uint64
kevin.lin
committed
8b0346e
View commit details
Copy full SHA for 8b0346e
View code at this point
Browse repository at this point
Commits on Jun 13, 2021
Support custom name matchers
abemedia
committed
fd87e0d
View commit details
Copy full SHA for fd87e0d
View code at this point
Browse repository at this point
Commits on Jan 12, 2021
decodeMapFromStruct: Only deref element if we're squashing the struct
Show description for cbfe794
mitchellh
committed
cbfe794
View commit details
Copy full SHA for cbfe794
View code at this point
Browse repository at this point
Commits on Dec 18, 2020
Add ErrorUnset option to DecoderConfig and Unset array to Metddata
Show description for d91ccce
SaschaRoland
committed
d91ccce
View commit details
Copy full SHA for d91ccce
View code at this point
Browse repository at this point
Commits on Nov 26, 2020
test to verify map => struct
mitchellh
committed
1ceb09e
View commit details
Copy full SHA for 1ceb09e
View code at this point
Browse repository at this point
Merge pull request #201 from northvolt/value-in-error-message
Show description for 07998cf
mitchellh
authored
07998cf
View commit details
Copy full SHA for 07998cf
View code at this point
Browse repository at this point
Commits on Aug 31, 2020
Add support for squashing embedded struct pointers
RussellLuo
committed
6023400
View commit details
Copy full SHA for 6023400
View code at this point
Browse repository at this point
Commits on Jun 23, 2020
Print value in error messages
leventov
committed
130efaf
View commit details
Copy full SHA for 130efaf
View code at this point
Browse repository at this point
Commits on Jun 7, 2020
If interface value is not addressable, make copy and set
Show description for 93663c4
mitchellh
committed
93663c4
View commit details
Copy full SHA for 93663c4
View code at this point
Browse repository at this point
add test for #187's working case
mitchellh
committed
5ffcd79
View commit details
Copy full SHA for 5ffcd79
View code at this point
Browse repository at this point
Commits on May 21, 2020
Fix squash decoder option to squash only embedded fields
Show description for 1d69ed7
uvw
committed
1d69ed7
View commit details
Copy full SHA for 1d69ed7
View code at this point
Browse repository at this point
Commits on Apr 28, 2020
Merge branch 'master' of https://github.com/perenecabuto/mapstructure into perenecabuto-master
mitchellh
committed
ca9bdad
View commit details
Copy full SHA for ca9bdad
View code at this point
Browse repository at this point
Commits on Apr 27, 2020
Fix an issues where pointers were causing a key to be recorded twice
mkeeler
committed
688fb23
View commit details
Copy full SHA for 688fb23
View code at this point
Browse repository at this point
Commits on Mar 23, 2020
Fix some non-deterministic tests by sorting
mitchellh
committed
ba04b21
View commit details
Copy full SHA for ba04b21
View code at this point
Browse repository at this point
Commits on Mar 20, 2020
Fix failing test due to alphabetical order
mitchellh
committed
56decc7
View commit details
Copy full SHA for 56decc7
View code at this point
Browse repository at this point
Commits on Mar 19, 2020
Do not delete key from unused map if field value cannot be set
mback2k
committed
330a4f5
View commit details
Copy full SHA for 330a4f5
View code at this point
Browse repository at this point
resolve tests for json uint
mitchellh
committed
0318dc3
View commit details
Copy full SHA for 0318dc3
View code at this point
Browse repository at this point
Merge pull request #85 from beornf/json-uint-number
Show description for 1002b25
mitchellh
authored
1002b25
View commit details
Copy full SHA for 1002b25
View code at this point
Browse repository at this point
Remain mode (see example) and way better package docs
mitchellh
committed
c4c37c1
View commit details
Copy full SHA for c4c37c1
View code at this point
Browse repository at this point
Commits on Mar 18, 2020
Add tests to verify int8 and other sizes work fine.
mitchellh
committed
6890441
View commit details
Copy full SHA for 6890441
View code at this point
Browse repository at this point
Merge pull request #155 from zhsj/fix-empty-slice
Show description for d476ae3
mitchellh
authored
d476ae3
View commit details
Copy full SHA for d476ae3
View code at this point
Browse repository at this point
Commits on Jul 10, 2019
Added decoder option for squashing embedded structs
Show description for 375104a
bminer
committed
375104a
View commit details
Copy full SHA for 375104a
View code at this point
Browse repository at this point
Commits on Feb 3, 2019
Fix empty slice not allocated
Show description for cf67d39
zhsj
committed
cf67d39
View commit details
Copy full SHA for cf67d39
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.