ããã«ã¡ã¯ãå°éãããã§ããã¿ã¤ãã«å ¨é¨ã§ãã æ¨æ¥ãç¾å¨æå»ã«ãã£ã¦æ¡ä»¶åå²ãããã¸ãã¯ãå«ãGoããã°ã©ã ãæ¸ãã¦ãã¦ãã©ããã¹ããããå°ã£ãã®ã§ããããã¾ãï¼ã¨æãï¼ããæ¹ãæãã¤ããã®ã§ããã«æ¸ãã¦ããã¾ãã æ¸ãã¦ããã®ã¯ã¾ãã ãããããããã½ã¼ã¹ã³ã¼ãã§ãã // main.go package main import ( "fmt" "time" ) func main() { fmt.Println(Greet("ããã")) } func Greet(n string) string { t := time.Now() if 6 <= t.Hour() && t.Hour() <= 18 { return fmt.Sprintf("ããã«ã¡ã¯%sãããä»ã¯%dæã§ããï¼", n, t.Hour()) } else { return fmt.Sprintf("ããã°ãã¯%s
{{#tags}}- {{label}}
{{/tags}}