]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/field.go
Replace custom slice concat func with slices.Concat
[rbdr/mobius] / hotline / field.go
index 4d2962bb3930c2dbce7dd3660150c3f52ec27a24..c205c42b8f2eb5eb43eb45e7d8714ab0c493e920 100644 (file)
@@ -2,7 +2,7 @@ package hotline
 
 import (
        "encoding/binary"
-       "github.com/jhalter/mobius/concat"
+       "slices"
 )
 
 // List of Hotline protocol field types taken from the official 1.9 protocol document
@@ -91,7 +91,7 @@ func NewField(id uint16, data []byte) Field {
 }
 
 func (f Field) Payload() []byte {
-       return concat.Slices(f.ID, f.FieldSize, f.Data)
+       return slices.Concat(f.ID, f.FieldSize, f.Data)
 }
 
 func getField(id int, fields *[]Field) *Field {