Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

add SliceAsSetsable interface #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

yflau
Copy link

@yflau yflau commented Jan 21, 2021

I want to use the hashstructure to compute compatible hash of json schema, and first I use the yaml lib to unmarshal json schema because of its simplicity, the struct is something like this:

type Node struct {
Kind int
Content []*Nodes
}

The Kind == 2 stands for a Sequence and Kind == 4 stands for a Map, when compute hash, I want to set sliceAsSets to true for Map and false to Sequence, but tag solution can not do this, so I want to add a interface to solve it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant