open-vault/vendor/github.com/mitchellh/reflectwalk
Mitchell Hashimoto c29ee275ce audit: hash time.Time values in map fields (#2689)
This enables audit.Hash to hash time.Time values that may exist as
direct fields in the map. This will error (instead of panic) for any
time.Time values that don't occur within map values. For example, this
does not support a time.Time within a slice. If that needs to be
supported then modifications will need to be made.

This also requires an update to reflectwalk (included in this PR). This
is a minimal change that allows SkipEntry to signal to skip an entire
struct. We do this because we don't want to walk any of time.Time since
we handle it directly.
2017-05-08 14:06:08 -04:00
..
LICENSE Migrate to built-in Go vendoring. 2016-02-18 15:06:02 -05:00
location.go Bump deps 2017-01-13 09:06:34 -05:00
location_string.go More dep bumps 2016-02-18 16:37:30 -05:00
README.md Migrate to built-in Go vendoring. 2016-02-18 15:06:02 -05:00
reflectwalk.go audit: hash time.Time values in map fields (#2689) 2017-05-08 14:06:08 -04:00

reflectwalk

reflectwalk is a Go library for "walking" a value in Go using reflection, in the same way a directory tree can be "walked" on the filesystem. Walking a complex structure can allow you to do manipulations on unknown structures such as those decoded from JSON.