Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/etkecc/go-msc1929


https://github.com/etkecc/go-msc1929

library matrix-org msc1929

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# [MSC1929](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/1929-admin-contact.md) and [MSC4121](https://github.com/FSG-Cat/matrix-spec-proposals/blob/FSG-Cat-Moderation-Role-well-known-support-record/proposals/4121-m.role.moderator.md) go client

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](https://gitlab.com/etke.cc/mrs/api) project, but it can be used in any other project that needs to interact with the admin contact API.

## Usage

```go
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())
}
```