A working proxy exists.

This commit is contained in:
2021-02-27 22:25:50 +01:00
parent ce94bf0d89
commit 617d7834cc
29 changed files with 781 additions and 195 deletions

View File

@@ -1,37 +1,37 @@
package ipp
type keyWord struct {
sos *setOfStrings
type KeyWord struct {
sos *SetOfStrings
}
func NewKeyWord(name string, values ...string) *keyWord {
func NewKeyWord(name string, values ...string) *KeyWord {
k := new(keyWord)
k := new(KeyWord)
k.sos = NewSetOfStrings(name, keyWordValueTag, values)
return k
}
func (k keyWord) Name() string {
func (k KeyWord) Name() string {
return k.sos.name
}
func (k keyWord) String() string {
func (k KeyWord) String() string {
return k.sos.String()
}
func (k *keyWord) size() int {
func (k *KeyWord) size() int {
return k.sos.size()
}
func (k *keyWord) valueTag() tag {
func (k *KeyWord) valueTag() tag {
return k.sos.valueTag()
}
func (k *keyWord) marshal() []byte {
func (k *KeyWord) marshal() []byte {
return k.sos.marshal()
}
func (k *keyWord) addValue(v interface{}) {
func (k *KeyWord) addValue(v interface{}) {
k.sos.AddValue(v.(string))
}