We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61f975 commit ab950eaCopy full SHA for ab950ea
channels/set.go
@@ -37,7 +37,13 @@ type ID struct {
37
}
38
39
func (c ID) String() string {
40
- return strconv.FormatUint(uint64(c.CollectionID), 10) + "." + base.UserDataPrefix + c.Name + base.UserDataSuffix
+ var sb strings.Builder
41
+ sb.WriteString(strconv.FormatUint(uint64(c.CollectionID), 10))
42
+ sb.WriteByte('.')
43
+ sb.WriteString(base.UserDataPrefix)
44
+ sb.WriteString(c.Name)
45
+ sb.WriteString(base.UserDataSuffix)
46
+ return sb.String()
47
48
49
// NewID returns a new ChannelID
0 commit comments