Files
katenary/generator/writers/utils.go
Patrice Ferlet a4834a0661 Now manage kubernetes version in ingress
The backend and ingressClassName are now under condition
2022-02-16 10:37:46 +01:00

15 lines
247 B
Go

package writers
// CountSpaces returns the number of spaces from the begining of the line
func CountSpaces(line string) int {
var spaces int
for _, char := range line {
if char == ' ' {
spaces++
} else {
break
}
}
return spaces
}