Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for resourcesStringImpl (0.17 sec)

  1. tools/bug-report/pkg/cluster/cluster.go

    // String implements the Stringer interface.
    func (r *Resources) String() string {
    	return resourcesStringImpl(r.Root, "")
    }
    
    func resourcesStringImpl(node any, prefix string) string {
    	out := ""
    	if node == nil {
    		return ""
    	}
    	nv := node.(map[string]any)
    	for k, n := range nv {
    		out += prefix + k + "\n"
    		out += resourcesStringImpl(n, prefix+"  ")
    	}
    
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 14 02:11:31 UTC 2023
    - 10.9K bytes
    - Viewed (1)
Back to top