With returns a new F that has the fields in nodes.
(nodes map[string]any)
| 89 | |
| 90 | // With returns a new F that has the fields in nodes. |
| 91 | func (f *F) With(nodes map[string]any) *F { |
| 92 | return &F{ |
| 93 | parent: f, |
| 94 | nodes: nodes, |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | // WithField returns a new fielder that has the key set to value. |
| 99 | func (f *F) WithField(name string, val any) *F { |
no outgoing calls
no test coverage detected