Run update-vendor.sh

This commit is contained in:
Dr. Stefan Schimanski
2019-07-13 10:07:03 +02:00
parent 7408ebfdca
commit 91a3704938
63 changed files with 1907 additions and 793 deletions

View File

@@ -84,6 +84,18 @@ func (m *Map) Set(key string, value Value) {
m.index = nil // Since the append might have reallocated
}
// Delete removes the key from the set.
func (m *Map) Delete(key string) {
items := []Field{}
for i := range m.Items {
if m.Items[i].Name != key {
items = append(items, m.Items[i])
}
}
m.Items = items
m.index = nil // Since the list has changed
}
// StringValue returns s as a scalar string Value.
func StringValue(s string) Value {
s2 := String(s)