From 80829b47037d9c604461d9958fb0aabbd6371635 Mon Sep 17 00:00:00 2001 From: Nikita Mochalov Date: Fri, 18 Oct 2024 22:58:00 +0300 Subject: [PATCH] Rename log package --- README.md | 2 +- stlog/go.mod | 3 --- {stlog => zap}/README.md | 0 zap/go.mod | 3 +++ stlog/stlog.go => zap/log.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 stlog/go.mod rename {stlog => zap}/README.md (100%) create mode 100644 zap/go.mod rename stlog/stlog.go => zap/log.go (98%) diff --git a/README.md b/README.md index 52e39ac..11ee932 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ A collection of Go libraries: * [golimit](https://github.com/Zamony/go/tree/main/golimit) - simple rate limiter; * [httpstatus](https://github.com/Zamony/go/tree/main/httpstatus) - convert http code to status; * [squll](https://github.com/Zamony/go/tree/main/squll) - sql templating; -* [stlog](https://github.com/Zamony/go/tree/main/stlog) - structured logging; +* [zap](https://github.com/Zamony/go/tree/main/zap) - structured logging; * [sync](https://github.com/Zamony/go/tree/main/sync) - additional synchronization primitives; * [toast](https://github.com/Zamony/go/tree/main/toast) - test helpers; diff --git a/stlog/go.mod b/stlog/go.mod deleted file mode 100644 index 2e31d8a..0000000 --- a/stlog/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/Zamony/go/stlog - -go 1.21 diff --git a/stlog/README.md b/zap/README.md similarity index 100% rename from stlog/README.md rename to zap/README.md diff --git a/zap/go.mod b/zap/go.mod new file mode 100644 index 0000000..1814e24 --- /dev/null +++ b/zap/go.mod @@ -0,0 +1,3 @@ +module github.com/Zamony/go/zap + +go 1.21 diff --git a/stlog/stlog.go b/zap/log.go similarity index 98% rename from stlog/stlog.go rename to zap/log.go index 3040d03..1dbc881 100644 --- a/stlog/stlog.go +++ b/zap/log.go @@ -1,4 +1,4 @@ -package stlog +package zap import ( "log/slog"