]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/field.go
Update go.yml
[rbdr/mobius] / hotline / field.go
index c5ae55bfb3ba82a6e68acfec61fd34cd98e02b45..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
@@ -74,7 +74,6 @@ type Field struct {
 type requiredField struct {
        ID     int
        minLen int
-       maxLen int
 }
 
 func NewField(id uint16, data []byte) Field {
@@ -92,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 {