This library parses MSC1929 support file (including MSC4121 support), and provides a go client to interact with the admin contact API.
Initially it was developed to be used in the Matrix Rooms Search project, but it can be used in any other project that needs to interact with the admin contact API.
package main
import (
"fmt"
"github.com/etkecc/go-msc1929"
)
func main() {
contacts, err := msc1929.Get("matrix.org")
if err != nil {
fmt.Println(err)
}
fmt.Println(contactts.AdminEmails())
}