From fbc73922e9853d7e344e388f3fdfedb8fa323682 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 28 Nov 2025 16:34:28 +0100 Subject: doc: improve comments, pass lint Also improve the setup of golangci-lint. --- vm/vm.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vm') diff --git a/vm/vm.go b/vm/vm.go index f981415..18207f7 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -11,10 +11,8 @@ import ( const debug = true -type ( - Op int // Op is a VM opcode (bytecode instruction). - Pos int // Pos is the source code position of instruction -) +// Op is a VM opcode (bytecode instruction). +type Op int //go:generate stringer -type=Op @@ -58,6 +56,9 @@ const ( Swap // -- ) +// Pos is the source code position of instruction. +type Pos int + // Instruction represents a virtual machine bytecode instruction. type Instruction struct { Pos // position in source -- cgit v1.2.3