package ini

import (
	
	

	
)
OpenFile takes a path to a given file, and will open and parse that file.
func ( string) (Sections, error) {
	,  := os.Open()
	if  != nil {
		return Sections{}, awserr.New(ErrCodeUnableToReadFile, "unable to open file", )
	}
	defer .Close()

	return Parse()
}
Parse will parse the given file using the shared config visitor.
func ( io.Reader) (Sections, error) {
	,  := ParseAST()
	if  != nil {
		return Sections{}, 
	}

	 := NewDefaultVisitor()
	if  = Walk(, );  != nil {
		return Sections{}, 
	}

	return .Sections, nil
}
ParseBytes will parse the given bytes and return the parsed sections.
func ( []byte) (Sections, error) {
	,  := ParseASTBytes()
	if  != nil {
		return Sections{}, 
	}

	 := NewDefaultVisitor()
	if  = Walk(, );  != nil {
		return Sections{}, 
	}

	return .Sections, nil