2019-10-15 14:52:36 +03:00

19 lines
697 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Для запуска программы, добавьте код в файл `hello-world.go`
# и выполните `go run`.
$ go run hello-world.go
hello world
# Иногда необходимо собрать программу в бинарный
# файл. Мы можем сделать это с помощью команды
# `go build`.
$ go build hello-world.go
$ ls
hello-world hello-world.go
# Мы можем выполнить бинарный файл напрямую.
$ ./hello-world
hello world
# Теперь когда мы можем запускать и собирать Go-программы,
# давайте узнаем больше об этом языке.