å価ãé«ããããã®ã§ããæ£ç´ãä½ãããã®ãããã£ã¦ãã¾ããã pythonã§ãããªãï¼ã¨æã£ã¦ãã¾ãã®ã§ããå価ãé«ãã«ã¯çç±ãããã¨æãã®ã§ åå¼·ãããã¨æãã¾ãã åå¼·ããåã®ç¥èã¨ãã¦ã¯ãåãæå®ã§ãããã¨ãã³ã³ãã¤ã«ããã以å¤ã¯ã¾ã£ããç¥ããªãç¶æ³ã§ãã
ã¤ã³ã¹ãã¼ã«
Goè¨èªã®å ¬å¼ãµã¤ã( https://go.dev/dl/ )ã«ã¢ã¯ã»ã¹ã
Windowsç¨ã®ã¤ã³ã¹ãã¼ã©ã¼ããã¦ã³ãã¼ããã¾ãã æ¡å¼µåãã.msiãã®ãã¡ã¤ã«ãé¸æãã¾ãã
ãã¦ã³ãã¼ãããã¤ã³ã¹ãã¼ã©ã¼ï¼.msiãã¡ã¤ã«ï¼ãèµ·åãã¾ãã ç»é¢ä¸ã®æ示ã«å¾ããªãããã¤ã³ã¹ãã¼ã«ãé²ãã¾ãã ã¤ã³ã¹ãã¼ã«ãããã¹ã¯ããã©ã«ãè¨å®ã®ã¾ã¾ã«ãããã¨ãæ¨å¥¨ãã¾ãï¼é常㯠C:\Goï¼
ã¤ã³ã¹ãã¼ã«ãå®äºããã¾ã§å¾ ã¡ã¾ãã
ã³ãã³ãããã³ããã§ãã¼ã¸ã§ã³ãã§ãã°OK
go version # go version go1.22.3 windows/amd64
hello,world
cd ProjectFolder touch main.go
以ä¸å 容ã«ç·¨éãã
package main import "fmt" func main() { fmt.Println("Hello, World!") var myName string = "masanori" const mySecondName string = "masalib" fmt.Println("My name is", myName) fmt.Println("My second name is", mySecondName) }
以ä¸ã®ã³ãã³ãã§å®è¡ãã
go run main.go # Hello, World! # My name is masanori # My second name is masalib
ãã®æç¹ã§ã¯æ®éããªã»ã»ã»