Go 학습하기 - 변수
package mainimport "fmt"func main() { const namespace = "production" var serviceName string = "api-server" replicas, cpuPerPod, healthy := 3, 0.5, true totalCPU := float64(replicas) * cpuPerPod var ( a int b float64 c string d bool ) fmt.Printf("[%v] %v\n", namespace, serviceName) fmt.Printf("replicas=%v (%T), cpuPerPod=%v (%T), healthy=%v (%T)\n", replicas, replicas, cpuPerPod, cpuPerPod, h..
2026. 10. 7.