matterbridge/vendor/github.com/tinylib/msgp/msgp/errors_default.go
Wim d16645c952
Update mattermost library (#2152)
* Update mattermost library

* Fix linting
2024-05-24 23:08:09 +02:00

26 lines
381 B
Go

//go:build !tinygo
// +build !tinygo
package msgp
import (
"fmt"
"strconv"
)
// ctxString converts the incoming interface{} slice into a single string.
func ctxString(ctx []interface{}) string {
out := ""
for idx, cv := range ctx {
if idx > 0 {
out += "/"
}
out += fmt.Sprintf("%v", cv)
}
return out
}
func quoteStr(s string) string {
return strconv.Quote(s)
}