toJSON returns the json-encoded string for this node.
()
| 120 | |
| 121 | // toJSON returns the json-encoded string for this node. |
| 122 | func (n *Node) toJSON() string { |
| 123 | ret, err := json.Marshal(n) |
| 124 | if err != nil { |
| 125 | panic(err) |
| 126 | } |
| 127 | return string(ret) |
| 128 | } |
| 129 | |
| 130 | // Attr fills attr with the standard metadata for the node. |
| 131 | func (n *Node) Attr(_ context.Context, a *fuse.Attr) error { |
no test coverage detected