How to Compile and Run a Go Program from Command Prompt

Опубликовано: 07 Январь 2021
на канале: Example Program
15,935
146

In this tutorial you will learn how to compile and run a go program from command prompt in windows 10 operating system.

We can generate an executable file in go language by using the command
go build filename.go
We can also give a name for the executable file generated by using -o flag
go build -o Application filename.go

If you are interested in the output of the go program and not worried about the executable file, then we can check the output of our program by using
go run filename.go

our Social Media Pages
  / exampleprogram  
  / exampleprogram  
  / example_program  

Our Website
https://www.ExampleProgram.com

#ExampleProgram


Смотрите видео How to Compile and Run a Go Program from Command Prompt онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Example Program 07 Январь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 15,935 раз и оно понравилось 146 людям.