func (c *Conf) LoadString(fname, s string) (err error) {
	lx := c.newLex(fname, strings.NewReader(s))

	defer func() {
		if e := recover(); e != nil {
			err = fmt.Errorf("%s:%d:%d - %s", lx.name, lx.line, lx.column, e.(error))
		}
	}()

	if yyParse(lx) != 0 {
		panic(errors.New("syntax error"))
	}

	*c = *lx.conf
	return
}
// Load Conf from a named.conf format string s. Return an Error, if any.
Load Conf from a named.conf format string s. Return an Error, if any.
// Load Conf from a named . conf format string s . Return an Error if any .
func (c *Conf) LoadString(fname, s string) (err error) {
	lx := c.newLex(fname, strings.NewReader(s))
	defer func() {
		if e := recover(); e != nil {
			err = fmt.Errorf("%s:%d:%d - %s", lx.name, lx.line, lx.column, e.(error))
		}
	}()
	if yyParse(lx) != 0 {
		panic(errors.New("syntax error"))
	}
	*c = *lx.conf
	return
}
func ( c * Conf ) LoadString ( fname , s string ) ( err error ) { lx := c . newLex ( fname , strings . NewReader ( s ) ) defer func ( ) { if e := recover ( ) ; e != nil { err = fmt . Errorf ( " " , lx . name , lx . line , lx . column , e . ( error ) ) } } ( ) if yyParse ( lx ) != 0 { panic ( errors . New ( " " ) ) } * c = * lx . conf return }
Load Conf from a named.conf format string s. Return an Error, if any.
Load Conf from a named . conf format string s . Return an Error if any .