// CommentPattern returns a function which will specify the comment pattern
// for the DFReader to use when stripping comments
CommentPattern returns a function which will specify the comment pattern
for the DFReader to use when stripping comments
// CommentPattern returns a function which will specify the comment pattern // for the DFReader to use when stripping comments
func CommentPattern(pattern string) DFReaderOpt {
	return func(dfr *DFReader) error {
		var err error
		dfr.commentRegex, err = regexp.Compile(pattern)
		if err != nil {
			err = dfErrorf("the regexp to strip comments is invalid: %s", err)
		}
		return err
	}
}
func CommentPattern ( pattern string ) DFReaderOpt { return func ( dfr * DFReader ) error { var err error dfr . commentRegex , err = regexp . Compile ( pattern ) if err != nil { err = dfErrorf ( " " , err ) } return err } }
CommentPattern returns a function which will specify the comment pattern
for the DFReader to use when stripping comments
CommentPattern returns a function which will specify the comment pattern for the DFReader to use when stripping comments