docs: More samples.
Change-Id: Ibcab3b04ae1650cd213a5a0915b7c6056a6a6964
This commit is contained in:
parent
8385c3ac9b
commit
3ee4d894f5
14 changed files with 552 additions and 0 deletions
10
examples/go/main.go
Normal file
10
examples/go/main.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
import "go.uber.org/zap"
|
||||
|
||||
func main() {
|
||||
logger, _ := zap.NewDevelopment()
|
||||
defer logger.Sync()
|
||||
|
||||
logger.Info("This is an example Go program.", zap.String("exampleString", "yes"), zap.Bool("example", true))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue