Files
Foundry-Scrapping-API/internal/foundry/ws_message.go
lbenedar d5577f10d7 init
2026-04-02 18:37:30 +03:00

18 lines
309 B
Go

package foundry
import "fmt"
type wsMessage struct {
code string
id int
msgJson string
}
func (w wsMessage) toString() string {
return fmt.Sprintf("%s%d%s", w.code, w.id, w.msgJson)
}
func (w wsMessage) toByteSlice() []byte {
return fmt.Appendf([]byte{}, "%s%d%s", w.code, w.id, w.msgJson)
}