Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 958 Bytes

README.md

File metadata and controls

58 lines (43 loc) · 958 Bytes

App

Golang skaffold k8s environment.

Installation

Use local Kubernetes minikube start to learn and develop for Kubernetes.

minikube start

Usage

✅ Native Apple Silicon Support.

git checkout arm

Start App

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)
    }
}

Contributing

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.

License

MIT