8000 GitHub - avkosme/app: ☸️😹 Golang skaffold k8s environment
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

avkosme/app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0