// Load reads a Mesosfile from the given path
// if path == "-" it reads from stdin instead
Load reads a Mesosfile from the given path
if path == "-" it reads from stdin instead
// Load reads a Mesosfile from the given path // if path == " - " it reads from stdin instead
func Load(path string) (Mesosfile, error) {
	var (
		raw []byte
		err error
	)
	if path == "-" {
		raw, err = ioutil.ReadAll(os.Stdin)
	} else {
		raw, err = ioutil.ReadFile(path)
	}
	if err != nil {
		return nil, err
	}
	mf := Mesosfile{}
	return mf, yaml.Unmarshal(raw, &mf)
}
func Load ( path string ) ( Mesosfile , error ) { var ( raw [ ] byte err error ) if path == " " { raw , err = ioutil . ReadAll ( os . Stdin ) } else { raw , err = ioutil . ReadFile ( path ) } if err != nil { return nil , err } mf := Mesosfile { } return mf , yaml . Unmarshal ( raw , & mf ) }
Load reads a Mesosfile from the given path
if path == "-" it reads from stdin instead
Load reads a Mesosfile from the given path if path == " - " it reads from stdin instead