https://github.com/danny-yamamoto/go-cloudrun-slog
Check the slog in go 1.21.
https://github.com/danny-yamamoto/go-cloudrun-slog
go
Last synced: about 2 months ago
JSON representation
Check the slog in go 1.21.
- Host: GitHub
- URL: https://github.com/danny-yamamoto/go-cloudrun-slog
- Owner: danny-yamamoto
- Created: 2023-08-23T10:25:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T11:51:18.000Z (almost 2 years ago)
- Last Synced: 2025-02-02T18:23:18.237Z (4 months ago)
- Topics: go
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-cloudrun-slog
Check the slog in go 1.21.## Usage
```bash
go get golang.org/x/exp/slog@latest
```## Development
```bash
vscode ➜ /workspaces/go-cloudrun-slog (main) $ go run main.go
2023/08/23 11:24:50 starting server...
2023/08/23 11:24:50 defaulting to port 8080
2023/08/23 11:24:50 listening on port 8080
{"time":"2023-08-23T11:24:54.135826638Z","level":"INFO","msg":"hello, world","user":"vscode"}
```