MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / StringIndented

Method StringIndented

libs/bits/bit_array.go:302–309  ·  view source on GitHub ↗

StringIndented returns the same thing as String(), but applies the indent at every 10th bit, and twice at every 50th bit.

(indent string)

Source from the content-addressed store, hash-verified

300// StringIndented returns the same thing as String(), but applies the indent
301// at every 10th bit, and twice at every 50th bit.
302func (bA *BitArray) StringIndented(indent string) string {
303 if bA == nil {
304 return "nil-BitArray"
305 }
306 bA.mtx.Lock()
307 defer bA.mtx.Unlock()
308 return bA.stringIndented(indent)
309}
310
311func (bA *BitArray) stringIndented(indent string) string {
312 lines := []string{}

Callers 1

StringMethod · 0.95

Calls 3

stringIndentedMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected