https://github.com/n8tbyte/example-uber-zap
example-uber-zap
https://github.com/n8tbyte/example-uber-zap
Last synced: 5 days ago
JSON representation
example-uber-zap
- Host: GitHub
- URL: https://github.com/n8tbyte/example-uber-zap
- Owner: n8tbyte
- Created: 2025-05-08T14:53:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-08T15:58:01.000Z (about 1 year ago)
- Last Synced: 2026-02-27T21:35:15.516Z (4 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# example-uber-zap
```go
$ go run main.go
{"level":"info","ts":1746716227.2062423,"caller":"example-uber-zap/main.go:22","msg":"Application started"}
{"level":"info","ts":1746716227.2062423,"caller":"example-uber-zap/main.go:29","msg":"Starting data processing"}
{"level":"info","ts":1746716229.2075026,"caller":"example-uber-zap/main.go:31","msg":"Data processing in progress"}
{"level":"info","ts":1746716231.208436,"caller":"example-uber-zap/main.go:33","msg":"Data processing finished"}
{"level":"info","ts":1746716233.2087674,"caller":"example-uber-zap/main.go:39","msg":"Cleaning up resources"}
{"level":"info","ts":1746716235.2095482,"caller":"example-uber-zap/main.go:41","msg":"Closing database connections"}
{"level":"info","ts":1746716237.2105865,"caller":"example-uber-zap/main.go:43","msg":"Resources cleaned up"}
{"level":"info","ts":1746716239.2116847,"caller":"example-uber-zap/main.go:25","msg":"Application finished"}
```
```go
go tool pprof heap.out
```