Versions in this module Expand all Collapse all v1 v1.0.1 Oct 18, 2023 v1.0.0 Oct 18, 2023 Changes in this version + var ErrCantFindCredentials = errors.New("could not find credentials in wp-config.php") + var ErrCantFindPrefix = errors.New("could not find prefix in wp-config.php") + var ErrCouldNotReadWPConfig = errors.New("could not read wp-config.php") + var ErrEmptyContents = errors.New("empty contents") + type Emitter interface + EmitSingle func(src string, fn emitter.EmitFunc) error + type EmitterWPConfigParser struct + func NewEmitterCredentialsParser(e Emitter) *EmitterWPConfigParser + func (p *EmitterWPConfigParser) ParseWPConfig(publicPath types.PublicPath) (WPConfigFields, error) + type WPConfigFields struct + Credentials database.DatabaseCredentials + Prefix string