mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
printer: dedup warnings
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
22
vendor/github.com/mitchellh/hashstructure/v2/include.go
generated
vendored
Normal file
22
vendor/github.com/mitchellh/hashstructure/v2/include.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
package hashstructure
|
||||
|
||||
// Includable is an interface that can optionally be implemented by
|
||||
// a struct. It will be called for each field in the struct to check whether
|
||||
// it should be included in the hash.
|
||||
type Includable interface {
|
||||
HashInclude(field string, v interface{}) (bool, error)
|
||||
}
|
||||
|
||||
// IncludableMap is an interface that can optionally be implemented by
|
||||
// a struct. It will be called when a map-type field is found to ask the
|
||||
// struct if the map item should be included in the hash.
|
||||
type IncludableMap interface {
|
||||
HashIncludeMap(field string, k, v interface{}) (bool, error)
|
||||
}
|
||||
|
||||
// Hashable is an interface that can optionally be implemented by a struct
|
||||
// to override the hash value. This value will override the hash value for
|
||||
// the entire struct. Entries in the struct will not be hashed.
|
||||
type Hashable interface {
|
||||
Hash() (uint64, error)
|
||||
}
|
Reference in New Issue
Block a user