Merge branch 'settings124' of git.dynatron.me:amigan/stillbox into settings124
This commit is contained in:
commit
0040883875
1 changed files with 4 additions and 2 deletions
|
@ -2,9 +2,11 @@ package settings
|
|||
|
||||
import "encoding/json"
|
||||
|
||||
type Defaults map[Setting]Setting
|
||||
type Defaults map[string]Setting
|
||||
|
||||
func MustMarshal(s Setting) json.RawMessage {
|
||||
|
||||
|
||||
func MustMarshal(s interface{}) json.RawMessage {
|
||||
b, err := json.Marshal(s)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Loading…
Add table
Reference in a new issue