Tuesday, January 22, 2013

GOOGLE GO PROGRAMMING LANGUAGE (GOLANG) WORKSPACE

GO (GOLANG) WORKSPACE



REVISED: Friday, March 1, 2013




In this tutorial, you will learn about the Google Go programming language workspace.

I. GO WORKSPACE INTRODUCTION

Google GO programming language workspace directory structure.

A. bin

The bin is a package subdirectory containing executable binaries, created by the GO tool.

B. pkg

All GO code belongs to a package. GO programs begin with function main inside package main which signifies an executable command. The pkg is a package subdirectory containing compiled object files, created by the GO tool. The address referencing a command line subdirectory, must include all directories above it.

C. src

The src is a package subdirectory containing source code, which you create.

II. GOPATH ENVIRONMENT VARIABLE

Tell the GO tool where your workspace is by setting the GOPATH environment variable by going to your control panel and select system. Next, select advanced system settings. Then select environmental variables. Next, select system variables, then select edit, and then select path. Move your cursor to the very end of the path line, type a semicolon ; and then type the path to your GO bin subdirectory, for example, my path using Windows  is as follows:

c:\go\bin\ 

After you enter the path to your GO bin subdirectory, keep pressing OK until you exit out of the control panel.

In this tutorial, you have learned about the Google Go programming language workspace.


Elcric Otto Circle




-->



-->



-->





 







How to Link to My Home Page

The link will appear on your website as:

"Link to: ELCRIC OTTO CIRCLE's Home Page"




No comments:

Post a Comment