func (format *Base64Encode) Configure(conf core.PluginConfigReader) {
	dict := conf.GetString("Dictionary", "")
	if dict == "" {
		format.dictionary = base64.StdEncoding
	} else {
		if len(dict) != 64 {
			conf.Errors.Pushf("Base64 dictionary must contain 64 characters.")
		}
		format.dictionary = base64.NewEncoding(dict)
	}
}
Configure initializes this formatter with values from a plugin config.
package format
import (
	"encoding/base64"
	"gollum/core"
)
type Base64Encode struct {
	core.SimpleFormatter `gollumdoc:"embed_type"`
	dictionary           *base64.Encoding
}
func init() {
	core.TypeRegistry.Register(Base64Encode{})
}