diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-17 02:16:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-17 02:16:57 +0900 |
| commit | 92b61889a6db7e5e351cade9c871a9d670917ee9 (patch) | |
| tree | 57ab12560490ab4adc48dad94665646660087aac /check | |
| parent | 28e133c298c2e9d45c57ab570e35936248d86ddf (diff) | |
hst: support ephemeral overlay mounts
This is useful for reusing a readonly template without autoroot.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'check')
| -rw-r--r-- | check/absolute.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/check/absolute.go b/check/absolute.go index 1a050d06..c5970abb 100644 --- a/check/absolute.go +++ b/check/absolute.go @@ -31,6 +31,8 @@ func (e AbsoluteError) Is(target error) bool { type Absolute struct{ pathname unique.Handle[string] } var ( + _ fmt.GoStringer = new(Absolute) + _ encoding.TextAppender = new(Absolute) _ encoding.TextMarshaler = new(Absolute) _ encoding.TextUnmarshaler = new(Absolute) @@ -40,6 +42,10 @@ var ( _ encoding.BinaryUnmarshaler = new(Absolute) ) +func (a *Absolute) GoString() string { + return fmt.Sprintf("check.MustAbs(%q)", a.String()) +} + // ok returns whether [Absolute] is not the zero value. func (a *Absolute) ok() bool { return a != nil && *a != (Absolute{}) } |
