summaryrefslogtreecommitdiff
path: root/reallog.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-04 05:11:02 -0600
committerJeff Carr <[email protected]>2024-11-04 05:11:02 -0600
commit52991d305f90d2b18038e817eb9ec82d6172b4a6 (patch)
treea623a2286ca31cd80d7e4af292601a55c82f36aa /reallog.go
parent91b0564fb0797649862131f6623edbabca9a35df (diff)
add Sprintf and Sprintln
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'reallog.go')
-rw-r--r--reallog.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/reallog.go b/reallog.go
index 5a172b2..0f6bc33 100644
--- a/reallog.go
+++ b/reallog.go
@@ -36,6 +36,14 @@ func realPrintf(s string, a ...any) {
}
}
+func realSprintf(s string, a ...any) string {
+ return fmt.Sprintf(s, a...)
+}
+
+func realSprintln(s string, a ...any) string {
+ return fmt.Sprintf(s, a...) + "\n"
+}
+
func realFatalln(a ...any) {
reallog.Fatalln(a...)
}