mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-20 16:45:56 +08:00
20 lines
261 B
Go
20 lines
261 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/teivah/100-go-mistakes/2-code-project-organization/3-init-functions/redis"
|
|
)
|
|
|
|
func init() {
|
|
fmt.Println("init 1")
|
|
}
|
|
|
|
func init() {
|
|
fmt.Println("init 2")
|
|
}
|
|
|
|
func main() {
|
|
err := redis.Store("foo", "bar")
|
|
_ = err
|
|
}
|