package prosody type Prosody struct { binPath string accountsPath string } // /var/lib/prosody/xmpp%%2eurkob%%2ecom/accounts/ func NewProsody(domain string) *Prosody { return &Prosody{ binPath: "/usr/bin/prosodyctl", accountsPath: "/var/lib/prosody/" + domain + "/accounts/", } } func (p *Prosody) WithBinPath(binPath string) *Prosody { p.binPath = binPath return p }