Added devp-deploy to rbd-exporter

This commit is contained in:
anpivkin
2026-01-03 21:19:07 +03:00
parent ec2b96105f
commit 389dcbc366
6 changed files with 109 additions and 10 deletions
+3
View File
@@ -0,0 +1,3 @@
module main
go 1.24.5
+3
View File
@@ -0,0 +1,3 @@
module main
go 1.24.5
+36
View File
@@ -0,0 +1,36 @@
package main
import (
"fmt"
"os"
"time"
)
func launch() {
fmt.Println("To abort launch press Enter")
for i:=10;i >=0; i-- {
fmt.Printf("%d...\n",i)
}
}
func main() {
abort := make(chan struct{})
go func() {
os.Stdin.Read(make([]byte,1))
abort <- struct{}{}
}()
tick := time.Tick(1*time.Second)
for i:=10; i>=0; i-- {
fmt.Printf("%d...\n",i)
select {
case <-tick:
case <- abort:
fmt.Println("Launch cancelled")
return
}
}
}
+26
View File
@@ -0,0 +1,26 @@
package main
import "fmt"
func kek(i int) {
res_string := ""
for range i {
res_string += " "
}
fmt.Println(res_string,i)
}
func main() {
done := make(chan int)
for i:=range 10 {
go func() {
kek(i)
done <- 1
}()
}
for range 10 {
<- done
}
}