Add integer attribute type.

Merges some common code between integer and enum.
Enum can now bw a set.
Add valuer must take a interface{} in addValue since it can be different types.
This commit is contained in:
2020-12-28 23:11:21 +01:00
parent e0a0c88d95
commit 1eff8711d3
7 changed files with 156 additions and 34 deletions

View File

@@ -33,7 +33,7 @@ func (h ippMessageHeader) String() string {
}
type AddValuer interface {
addValue(string)
addValue(interface{})
}
type Request struct {