INNER CODE UNIT · Go

depth

open-policy-agent/conftest · document/metadata.go:104

			depth = currentDepth + 1
		}

		currentDepth = depth

		h := strings.Repeat("#", depth)
		path := strings.TrimPrefix(entry.Path.String(), "data.")

		d = append(d, Section{
			Depth:           depth,
			MarkdownHeading: h,
			RegoPackageName: path,
			Annotations:     entry.Annotations,
		})
	}

	return d, nil
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…