add EOSE envelope encoder with marshal/unmarshal support and tests
This commit is contained in:
9
pkg/utils/subscription.go
Normal file
9
pkg/utils/subscription.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func NewSubscription(n int) []byte {
|
||||
return []byte(fmt.Sprintf("sub:%d", n))
|
||||
}
|
||||
Reference in New Issue
Block a user