Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
message.go865 B
package notify import "fmt" const ( NotifyInfo = iota NotifyWarning NotifyError ) type Message interface { Message() string Type() int } type Notification struct { message string messageType int } func (n Notification) Message() string { return n.message } func (n Notification) Type() int { return n.messageType } func NewInfof(format string, args ...any) Message { return Notification{message: fmt.Sprintf(format, args...), messageType: NotifyInfo} } func NewWarningf(format string, args ...any) Message { return Notification{message: fmt.Sprintf(format, args...), messageType: NotifyWarning} } func NewError(err error) Message { if err == nil { return nil } return NewErrorf("%v", err) } func NewErrorf(format string, args ...any) Message { return Notification{message: fmt.Sprintf(format, args...), messageType: NotifyError} }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emicklei/melrose'

If you have feedback or need assistance with the MCP directory API, please join our Discord server