func Load(fname string, errHandler func(e string) bool, rrHandler func(rr *rr.RR) bool) (err error) {

	defer func() {
		if e := recover(); e != nil {
			err = e.(error)
		}
	}()

	var file *os.File
	if file, err = os.Open(fname); err != nil {
		panic(fmt.Errorf("zone load: %s", err))
	}

	defer file.Close()

	lx := newLex(fname, bufio.NewReader(file), errHandler, rrHandler)
	if yyParse(lx) != 0 {
		panic(fmt.Errorf("%s:%d:%d - synatx error", fname, lx.line, lx.column))
	}

	return
}
// Load attempts to load a zone/master (RFC1034/5.1) file from fname.
// On syntax error the errHandler is invoked if it's not nil, otherwise
// the loading is aborted and Error returned.
// If errHandler is not nil and returns false the loading is also aborted.
// On unrecoverable errors like file not found the load is aborted
// and Error returned.
// rrHandler is invoked for every resource record found in the zone file.
// If rrHandler returns false the loading is aborted and returns nil Error.
Load attempts to load a zone/master (RFC1034/5.1) file from fname.
On syntax error the errHandler is invoked if it's not nil, otherwise
the loading is aborted and Error returned.
If errHandler is not nil and returns false the loading is also aborted.
On unrecoverable errors like file not found the load is aborted
and Error returned.
rrHandler is invoked for every resource record found in the zone file.
If rrHandler returns false the loading is aborted and returns nil Error.
// Load attempts to load a zone / master ( RFC1034 / 5 . 1 ) file from fname . // On syntax error the errHandler is invoked if it ' s not nil otherwise // the loading is aborted and Error returned . // If errHandler is not nil and returns false the loading is also aborted . // On unrecoverable errors like file not found the load is aborted // and Error returned . // rrHandler is invoked for every resource record found in the zone file . // If rrHandler returns false the loading is aborted and returns nil Error .
func Load(fname string, errHandler func(e string) bool, rrHandler func(rr *rr.RR) bool) (err error) {
	defer func() {
		if e := recover(); e != nil {
			err = e.(error)
		}
	}()
	var file *os.File
	if file, err = os.Open(fname); err != nil {
		panic(fmt.Errorf("zone load: %s", err))
	}
	defer file.Close()
	lx := newLex(fname, bufio.NewReader(file), errHandler, rrHandler)
	if yyParse(lx) != 0 {
		panic(fmt.Errorf("%s:%d:%d - synatx error", fname, lx.line, lx.column))
	}
	return
}
func Load ( fname string , errHandler func ( e string ) bool , rrHandler func ( rr * rr . RR ) bool ) ( err error ) { defer func ( ) { if e := recover ( ) ; e != nil { err = e . ( error ) } } ( ) var file * os . File if file , err = os . Open ( fname ) ; err != nil { panic ( fmt . Errorf ( " " , err ) ) } defer file . Close ( ) lx := newLex ( fname , bufio . NewReader ( file ) , errHandler , rrHandler ) if yyParse ( lx ) != 0 { panic ( fmt . Errorf ( " " , fname , lx . line , lx . column ) ) } return }
Load attempts to load a zone/master (RFC1034/5.1) file from fname.
Load attempts to load a zone / master ( RFC1034 / 5 . 1 ) file from fname .