Lines Matching refs:indentation

175 func Object(object interface{}, indentation uint) string {
176 indent := strings.Repeat(Indent, int(indentation))
178 return fmt.Sprintf("%s<%s>: %s", indent, formatType(object), formatValue(value, indentation))
184 func IndentString(s string, indentation uint) string {
187 indent := strings.Repeat(Indent, int(indentation))
220 func formatValue(value reflect.Value, indentation uint) string {
221 if indentation > MaxDepth {
242 if value.Type().Implements(contextType) && indentation > 1 {
265 return formatValue(value.Elem(), indentation)
267 return formatSlice(value, indentation)
269 return formatString(value.String(), indentation)
271 return formatSlice(value, indentation)
273 return formatMap(value, indentation)
279 return formatStruct(value, indentation)
281 return formatValue(value.Elem(), indentation)
290 func formatString(object interface{}, indentation uint) string {
291 if indentation == 1 {
312 func formatSlice(v reflect.Value, indentation uint) string {
314 return formatString(v.Bytes(), indentation)
321 result[i] = formatValue(v.Index(i), indentation+1)
328 indenter := strings.Repeat(Indent, int(indentation))
334 func formatMap(v reflect.Value, indentation uint) string {
341 …result[i] = fmt.Sprintf("%s: %s", formatValue(key, indentation+1), formatValue(value, indentation+…
348 indenter := strings.Repeat(Indent, int(indentation))
354 func formatStruct(v reflect.Value, indentation uint) string {
363 representation := fmt.Sprintf("%s: %s", structField.Name, formatValue(fieldEntry, indentation+1))
370 indenter := strings.Repeat(Indent, int(indentation))