code: func countLeadingSpace(s string) (runes int) {
  	for _, r := range s {
  		if !unicode.IsSpace(r) {
  			break
  		}
  		runes++
  	}
  	return
  }
docs: // countLeadingSpace returns number of space runes at the prefix of a string.