From be703e4a10042ceb4f37acb557e77cef43d2bfd4 Mon Sep 17 00:00:00 2001 From: Eduard Kargin Date: Tue, 24 Mar 2026 12:23:24 +0300 Subject: [PATCH] chore: remove comments --- testdata/sample.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/testdata/sample.go b/testdata/sample.go index 19ad0fc..d9843b3 100644 --- a/testdata/sample.go +++ b/testdata/sample.go @@ -1,6 +1,5 @@ package messages -// Vector3 — трёхмерный вектор с квантизацией. type Vector3 struct { X float32 `pack:"min=-500,max=500,bits=16"` Y float32 `pack:"min=-500,max=500,bits=16"` @@ -15,20 +14,17 @@ const ( OpcodeJoinRoom ) -// MoveMessage содержит всё многообразие поддерживаемых типов. type MoveMessage struct { - Position Vector3 // вложенный тип - Velocity [3]float32 // фиксированный массив без квантизации - Waypoints []Vector3 // слайс вложенных типов + Position Vector3 + Velocity [3]float32 + Waypoints []Vector3 PlayerID uint32 - // 3 подряд bool → упаковываются в 1 байт Active bool Visible bool Ghost bool Name string } -// SpawnMessage — пример с целочисленными полями и массивами примитивов. type SpawnMessage struct { EntityID uint64 Position Vector3