MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / isSection

Function isSection

internal/pacman/config_map.go:55–57  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

53}
54
55func isSection(line string) bool {
56 return len(line) > 2 && strings.HasPrefix(line, "[") && strings.HasSuffix(line, "]")
57}
58
59func extractSectionName(line string) string {
60 return line[1 : len(line)-1]

Callers 1

createConfigMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected