This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Whatever name 🦄", | |
"author": "Dumindu Madunuwan", | |
"version": "0.0.1", | |
"theme": { | |
"colors": { | |
"frame": "#32ae75", | |
"toolbar": "#32ae75", | |
"toolbar_field": "#32ae75", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
var ch = make(chan string) | |
func main() { | |
go write() | |
fmt.Println(<-ch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
ch := make(chan string, 1) | |
ch <- "Hello world!" | |
fmt.Println(<-ch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
ch := make(chan string) | |
go write(ch) | |
fmt.Println(<-ch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
ch := make(chan string) | |
go func() { | |
ch <- "Hello world!" | |
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
func main() { | |
wg := sync.WaitGroup{} | |
wg.Add(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
func main() { | |
ch := make(chan int) |