func OpenWithPath(path string, flags Flag) error {
	decMu.Lock()
	defer decMu.Unlock()
	if dec != nil {
		return errors.New("cannot open; magic mime db is already open")
	}
	var err error
	dec, err = NewDecoderWithPath(path, flags)
	return err
}
// Open initializes a global Decoder and opens the magicmime database
// with the specified flags. Once successfully opened, users must
// call Close when they are finished using the package. This must
// be called before any of the package level functions.
Open initializes a global Decoder and opens the magicmime database
with the specified flags. Once successfully opened, users must
call Close when they are finished using the package. This must
be called before any of the package level functions.
// Open initializes a global Decoder and opens the magicmime database // with the specified flags . Once successfully opened users must // call Close when they are finished using the package . This must // be called before any of the package level functions .
func OpenWithPath(path string, flags Flag) error {
	decMu.Lock()
	defer decMu.Unlock()
	if dec != nil {
		return errors.New("cannot open; magic mime db is already open")
	}
	var err error
	dec, err = NewDecoderWithPath(path, flags)
	return err
}
func OpenWithPath ( path string , flags Flag ) error { decMu . Lock ( ) defer decMu . Unlock ( ) if dec != nil { return errors . New ( " " ) } var err error dec , err = NewDecoderWithPath ( path , flags ) return err }
Open initializes a global Decoder and opens the magicmime database
with the specified flags.
Open initializes a global Decoder and opens the magicmime database with the specified flags .