From 9c44621ee1ca9abfca79c593e80193afd9204c83 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sat, 8 Jun 2024 19:26:14 -0700 Subject: Replace custom slice concat func with slices.Concat --- hotline/field.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hotline/field.go') diff --git a/hotline/field.go b/hotline/field.go index 4d2962b..c205c42 100644 --- a/hotline/field.go +++ b/hotline/field.go @@ -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 { -- cgit