File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,8 +48,11 @@ func (r *DiagnosticsRegistry) EnableServer(port int) {
4848 }()
4949}
5050
51- // Registers diagnostics source callback with a given name. Name will be used as a key and callback result as a value in JSON object
52- // during composing diagnostics JSON. Note: function will override existing diagnostics source on attempt to register another one with the same name
51+ // Registers diagnostics source callback with a given name.
52+ // Name will be used as a key and callback result as a value in JSON object
53+ // during composing diagnostics JSON.
54+ // Note: function will override existing diagnostics source on attempt
55+ // to register another one with the same name.
5356func (r * DiagnosticsRegistry ) RegisterSource (name string , source func () string ) {
5457 r .diagnosticsMutex .Lock ()
5558 defer r .diagnosticsMutex .Unlock ()
You can’t perform that action at this time.
0 commit comments