avkosme / app

☸️😹 Golang skaffold k8s environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

☸️😹 Golang skaffold k8s environment


Languages

Language:Dockerfile 42.7%Language:Shell 30.0%Language:Go 27.3%