Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.07 KB

File metadata and controls

31 lines (23 loc) · 1.07 KB

Matrix Server Contacts go client

This small library provides a go client to interact with /.well-known/matrix/support endpoint.

The following MSCs are supported:

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.

Usage

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(contacts.AdminEmails())
}