func (y *Yaml) StringArray() ([]string, error) {
	arr, err := y.Array()
	if err != nil {
		return nil, err
	}
	retArr := make([]string, 0, len(arr))
	for _, a := range arr {
		if a == nil {
			retArr = append(retArr, "")
			continue
		}
		s, ok := a.(string)
		if !ok {
			return nil, errors.New("type assertion to []string failed")
		}
		retArr = append(retArr, s)
	}
	return retArr, nil
}
// StringArray type asserts to an `array` of `string`
StringArray type asserts to an `array` of `string`
// StringArray type asserts to an ` array ` of ` string `
func (y *Yaml) StringArray() ([]string, error) {
	arr, err := y.Array()
	if err != nil {
		return nil, err
	}
	retArr := make([]string, 0, len(arr))
	for _, a := range arr {
		if a == nil {
			retArr = append(retArr, "")
			continue
		}
		s, ok := a.(string)
		if !ok {
			return nil, errors.New("type assertion to []string failed")
		}
		retArr = append(retArr, s)
	}
	return retArr, nil
}
func ( y * Yaml ) StringArray ( ) ( [ ] string , error ) { arr , err := y . Array ( ) if err != nil { return nil , err } retArr := make ( [ ] string , 0 , len ( arr ) ) for _ , a := range arr { if a == nil { retArr = append ( retArr , " " ) continue } s , ok := a . ( string ) if ! ok { return nil , errors . New ( " " ) } retArr = append ( retArr , s ) } return retArr , nil }
StringArray type asserts to an `array` of `string`
StringArray type asserts to an ` array ` of ` string `