diff options
Diffstat (limited to 'original.go')
| -rw-r--r-- | original.go | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/original.go b/original.go index 7bd287d..7663e5e 100644 --- a/original.go +++ b/original.go @@ -5,7 +5,7 @@ package log "log" } - and + and import ( "go.wit.com/log" @@ -50,33 +50,35 @@ package log */ func Println(a ...any) { - if ! PRINTLN.Ok() { return } - if ! PRINTLN.b { return } + if !PRINTLN.Ok() { + return + } + if !PRINTLN.b { + return + } realPrintln(a...) } func Printf(s string, a ...any) { - if ! PRINTLN.Ok() { return } - if ! PRINTLN.b { return } + if !PRINTLN.Ok() { + return + } + if !PRINTLN.b { + return + } realPrintf(s, a...) } func Sprint(a ...any) string { - if ! PRINTLN.Ok() { return ""} - if ! PRINTLN.b { return ""} return realSprint(a...) } func Sprintf(s string, a ...any) string { - if ! PRINTLN.Ok() { return ""} - if ! PRINTLN.b { return ""} return realSprintf(s, a...) } -func Sprintln(s string, a ...any) string { - if ! PRINTLN.Ok() { return ""} - if ! PRINTLN.b { return ""} - return realSprintln(s, a...) +func Sprintln(a ...any) string { + return realSprintln(a...) } func Fatalln(a ...any) { |
