Added mon_quorum panel to ceph-cluster dashboard
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
module first
|
||||
|
||||
go 1.24.5
|
||||
@@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Enter a grade")
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
input,err := reader.ReadString('\n')
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
input = strings.TrimSpace(input)
|
||||
grade,_ := strconv.Atoi(input)
|
||||
if grade > 60 {
|
||||
fmt.Println("Passes")
|
||||
}
|
||||
fmt.Println(input)
|
||||
}
|
||||
Reference in New Issue
Block a user