From 6309469e933a31a300fbf16d8e77f48dcee402d3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 12 Apr 2025 13:56:41 +0900 Subject: app/instance: wrap internal implementation This reduces the scope of the fst package, which was growing questionably large. Signed-off-by: Ophestra --- internal/app/setuid/strings.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 internal/app/setuid/strings.go (limited to 'internal/app/setuid/strings.go') diff --git a/internal/app/setuid/strings.go b/internal/app/setuid/strings.go deleted file mode 100644 index f5b51344..00000000 --- a/internal/app/setuid/strings.go +++ /dev/null @@ -1,19 +0,0 @@ -package setuid - -import ( - "strconv" - - "git.gensokyo.uk/security/fortify/fst" -) - -func newInt(v int) *stringPair[int] { return &stringPair[int]{v, strconv.Itoa(v)} } -func newID(id *fst.ID) *stringPair[fst.ID] { return &stringPair[fst.ID]{*id, id.String()} } - -// stringPair stores a value and its string representation. -type stringPair[T comparable] struct { - v T - s string -} - -func (s *stringPair[T]) unwrap() T { return s.v } -func (s *stringPair[T]) String() string { return s.s } -- cgit v1.3.1