aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/instance_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-13 07:08:07 +0900
committerOphestra <cat@gensokyo.uk>2025-11-13 07:14:16 +0900
commitabeb67964f52f245f7d529e4dfe01f8347932bfd (patch)
treeb2e00cedab6721261098dee789360571bdefa0cf /hst/instance_test.go
parentbf5d10743f82ea438b1a05939f55d8b0027e98b9 (diff)
treewide: document linkname uses
These provide justification for each use of linkname. Poorly thought out uses of linkname are removed. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/instance_test.go')
-rw-r--r--hst/instance_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/hst/instance_test.go b/hst/instance_test.go
index 5be9fc8b..290e7fbd 100644
--- a/hst/instance_test.go
+++ b/hst/instance_test.go
@@ -6,11 +6,13 @@ import (
"reflect"
"testing"
"time"
- _ "unsafe"
+ _ "unsafe" // for go:linkname
"hakurei.app/hst"
)
+// Made available here to check time encoding behaviour of [hst.ID].
+//
//go:linkname newInstanceID hakurei.app/hst.newInstanceID
func newInstanceID(id *hst.ID, p uint64) error