diff options
| author | Jeff Carr <[email protected]> | 2023-12-31 10:45:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-31 10:45:04 -0600 |
| commit | f98207af0a8783465f003bbcdc7819f545090f43 (patch) | |
| tree | 9c88dbfc6802f356ca261e2b61dd9b296eb32769 /original.go | |
| parent | ae261633933db2a4870a8556dd4ed11727adc6b7 (diff) | |
more comments and code re-arrangement
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'original.go')
| -rw-r--r-- | original.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/original.go b/original.go new file mode 100644 index 0000000..e5a83a5 --- /dev/null +++ b/original.go @@ -0,0 +1,39 @@ +package log + +/* + import ( + "log" + } + + and + + import ( + "go.wit.com/log" + } + + Should work exactly the same. + + These are golang log functions that are not changed + at all. The arguments are all just passed straight through + so this package appears to work exactly like the original ones +*/ + +import ( + origlog "log" +) + +func Println(a ...any) { + origlog.Println(a...) +} + +func Printf(s string, a ...any) { + origlog.Printf(s, a...) +} + +func Fatalf(s string, a ...any) { + origlog.Fatalf(s, a...) +} + +func Fatal(s string, a ...any) { + origlog.Fatalf(s, a...) +} |
