diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-10 20:39:06 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-10 20:47:30 +0900 |
| commit | 560cb626a1a8f7d4bfca5d30f262cc90fb5d4608 (patch) | |
| tree | 0be44e6cf70bae8b608b6a12efc06d66d1f2e5d9 /internal/system/dispatcher.go | |
| parent | c33a6a5b7ee130370aeeebf6635977415115f7da (diff) | |
hst: remove enablement json adapter
The go116 behaviour of built-in new function makes this cleaner.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/system/dispatcher.go')
| -rw-r--r-- | internal/system/dispatcher.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/internal/system/dispatcher.go b/internal/system/dispatcher.go index d9a9fdb9..8f70b0c0 100644 --- a/internal/system/dispatcher.go +++ b/internal/system/dispatcher.go @@ -21,12 +21,16 @@ type osFile interface { fs.File } -// syscallDispatcher provides methods that make state-dependent system calls as part of their behaviour. +// syscallDispatcher provides methods that make state-dependent system calls as +// part of their behaviour. +// // syscallDispatcher is embedded in [I], so all methods must be unexported. type syscallDispatcher interface { // new starts a goroutine with a new instance of syscallDispatcher. - // A syscallDispatcher must never be used in any goroutine other than the one owning it, - // just synchronising access is not enough, as this is for test instrumentation. + // + // A syscallDispatcher must never be used in any goroutine other than the + // one owning it, just synchronising access is not enough, as this is for + // test instrumentation. new(f func(k syscallDispatcher)) // stat provides os.Stat. |
