MCPcopy Create free account
hub / github.com/koding/kite / toObject

Function toObject

kitectl/command/showkey.go:23–34  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

21}
22
23func toObject(v interface{}) (m map[string]interface{}) {
24 p, err := json.Marshal(v)
25 if err != nil {
26 panic(err)
27 }
28
29 if err := json.Unmarshal(p, &m); err != nil {
30 panic(err)
31 }
32
33 return m
34}
35
36type Showkey struct {
37 Ui cli.Ui

Callers 1

RunMethod · 0.85

Calls 1

UnmarshalMethod · 0.80

Tested by

no test coverage detected