app_msg

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyRaw             = "raw"
	KeyParamRaw        = "Raw"
	KeyComplex         = "complex"
	KeyComplexMessages = "Messages"
)

Variables

This section is empty.

Functions

func Apply

func Apply(mo interface{}) interface{}

func IsSpecialKey

func IsSpecialKey(key string) bool

Types

type Message

type Message interface {
	Key() string
	Params() []P
	With(key string, value interface{}) Message
	AsOptional() MessageOptional
}

func CreateMessage

func CreateMessage(key string, p ...P) Message

func Messages

func Messages(mo interface{}) []Message

func ObjMessage

func ObjMessage(r interface{}, suffix string) Message

func Raw

func Raw(text interface{}) Message

type MessageComplex

type MessageComplex interface {
	Message
	Messages() []Message
}

func Join

func Join(messages ...Message) MessageComplex

type MessageOptional

type MessageOptional interface {
	Message
	Optional() bool
}

type P

type P map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL