Skip to content

Instantly share code, notes, and snippets.

View dumindu's full-sized avatar
🌱
One step at a time...

Dumindu Madunuwan dumindu

🌱
One step at a time...
View GitHub Profile
{
"manifest_version": 2,
"name": "Whatever name 🦄",
"author": "Dumindu Madunuwan",
"version": "0.0.1",
"theme": {
"colors": {
"frame": "#32ae75",
"toolbar": "#32ae75",
"toolbar_field": "#32ae75",
use std::fmt;
struct CustomErr(isize);
// Implement std::fmt::Display for CustomErr
impl fmt::Display for CustomErr {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.user_face_err())
}
}
Name: istio-ingressgateway-5855454469-xj4xs
Namespace: istio-system
Priority: 0
Node: minikube/192.168.39.240
Start Time: Mon, 22 Jun 2020 23:47:03 +0800
Labels: app=istio-ingressgateway
chart=gateways
heritage=Tiller
istio=ingressgateway
pod-template-hash=5855454469
# Resources for AddonComponents grafana component
apiVersion: v1
kind: ConfigMap
metadata:
name: istio-grafana-configuration-dashboards-istio-mesh-dashboard
namespace: istio-system
labels:
app: grafana
release: istio
package main
import "fmt"
var ch = make(chan string)
func main() {
go write()
fmt.Println(<-ch)
package main
import "fmt"
func main() {
ch := make(chan string, 1)
ch <- "Hello world!"
fmt.Println(<-ch)
package main
import "fmt"
func main() {
ch := make(chan string)
go write(ch)
fmt.Println(<-ch)
package main
import "fmt"
func main() {
ch := make(chan string)
go func() {
ch <- "Hello world!"
}()
package main
import (
"fmt"
"sync"
)
func main() {
wg := sync.WaitGroup{}
wg.Add(1)
package main
import (
"fmt"
"sync"
)
func main() {
ch := make(chan int)