Golang skaffold k8s environment.
Use local Kubernetes minikube start to learn and develop for Kubernetes.
minikube start
✅ Native Apple Silicon Support.
git checkout arm
skaffold dev
Examle app "cmd/main.go"
package main
import (
"log"
"time"
)
// Race Condition and Data Race
func main() {
for {
var data int
go func() {
data++
log.Print(`the value data++ is `, data)
}()
if data == 0 {
log.Print(`the value data is `, data)
}
time.Sleep(time.Microsecond * 100)
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.