Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Oct 21, 2022
1 parent 70b6204 commit e4b14d9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions container/string.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 by Leipzig University Library, http://ub.uni-leipzig.de
// The Finc Authors, http://finc.info
// Martin Czygan, <[email protected]>
// Copyright 2015 by Leipzig University Library, http://ub.uni-leipzig.de
// The Finc Authors, http://finc.info
// Martin Czygan, <[email protected]>
//
// This file is part of some open source application.
//
Expand All @@ -18,7 +18,6 @@
// along with Foobar. If not, see <http://www.gnu.org/licenses/>.
//
// @license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+>
//
package container

import (
Expand All @@ -32,11 +31,6 @@ import (
// MapDefault provides defaults for string map lookups with defaults.
type MapDefault map[string]string

// func (m MapDefault) UnmarshalJSON(data []byte) error {
// m = make(MapDefault)
// return json.Unmarshal(data, &m)
// }

// Lookup map with a default value.
func (m MapDefault) Lookup(key, def string) string {
val, ok := m[key]
Expand Down

0 comments on commit e4b14d9

Please sign in to comment.