-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
// | ||
|
@@ -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 ( | ||
|
@@ -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] | ||
|