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" | |
"time" | |
) | |
func main() { | |
kahramanlar := []string{"Marvel", "Flash", "Thanos", "Flash", "Hulk", "Thor", | |
"Marvel", "Flash", "Thanos", "Flash", "Hulk", "Thor"} |
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" | |
"time" | |
) | |
func main() { | |
kahramanlar := []string{"Marvel", "Flash", "Thanos", "Flash"} | |
ilkKanalim := make(chan string) |
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" | |
"time" | |
) | |
func main() { | |
kahramanlar := []string{"Marvel", "Flash", "Thanos", "Flash"} | |
ilkKanalim := make(chan string) |
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" | |
"time" | |
) | |
func main() { | |
bufferedKanal := make(chan string, 3) | |
go func() { |
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" | |
"time" | |
) | |
func main() { | |
kanalim := make(chan string) |
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" | |
import "time" | |
// Birden fazla eş zamanlı görevi vereceğimiz işçilerimizi | |
// burada tanımlıyoruz. Bu işçiler jobs kanaldaki işleri alıp, | |
// sonuçlarını işe karşılık gelen results kanalına iletmekteler. | |
// Yapılan işi tanımlamak için 1 saniyelik bekleme koyulmuştur. | |
func worker(id int, jobs <-chan int, results chan<- int) { |
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
func main() { | |
go func() { | |
fmt.Println("Merhaba isimsiz dünya") | |
}() | |
} |
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
ilkKanal := make(chan string) | |
ilkKanal <- "merhaba" // Gönderme | |
degisken := <- ilkKanal // Alma |
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
<?php | |
require_once 'vendor/autoload.php'; | |
// Yeni bağlantı nesnesi oluşturma ve bağlanma | |
$client = new \Nats\Connection(); | |
$client->connect(); | |
// Subscriber | |
$callback = function($payload) |
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
//GENERAL | |
docker ps | |
docker ps -a | |
docker image list | |
docker stop <containerid> | |
docker rm <containerid> | |
docker rmi <imageid> | |
// LIST AND DELETE ALL CONTAINERS | |
docker container ls |
OlderNewer