func (y *Yaml) Array() ([]interface{}, error) {
	if a, ok := (y.data).([]interface{}); ok {
		return a, nil
	}
	return nil, errors.New("type assertion to []interface{} failed")
}
Array type asserts to an `array`
package simpleyaml
import (
	"errors"
	"gopkg.in/yaml.v2"
)
type Yaml struct {
	data interface{}
}
func NewYaml(body []byte) (*Yaml, error) {
	var val interface{}
	if err := yaml.Unmarshal(body, &val); err != nil {
		return nil, errors.New("unmarshal []byte to yaml failed: " + err.Error())
	}
	return &Yaml{val}, nil
}
func (y *Yaml) IsFound() bool {
	return y.data != nil
}
func (y *Yaml) Get(key interface{}) *Yaml {
	m, err := y.Map()
	if err == nil {
		if val, ok := m[key]; ok {
			return &Yaml{val}
		}
	}
	return &Yaml{nil}
}
func (y *Yaml) GetPath(branch ...interface{}) *Yaml {
	yin := y
	for _, p := range branch {
		yin = yin.Get(p)
	}
	return yin
}