Skip to content

wilsonmar/golang-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository (https://github.com/wilsonmar/golang-samples) contains simple sample code in the Go language.

See https://wilsonmar.github.io/golang

  1. It would be an honor for me if you click the Star icon.

  2. Fork this to your account because I assume you'll want to make changes.

    On your local machine:

  3. Clone your version of the repo onto your local machine.

  4. Install the Go compiler (if you haven't already).

    On a Terminal Shell window:

  5. Define a global shell variable to your cloned repo.

  6. cd into a program's folder.

    Build and Run a program

    The hello program contains an enhanced "hello world" example.

  7. For testing, build the source into an executable and invoke it in one step:

    cd hello
    go run hello.go
    cd ..
    
  8. Build the source files into a new executable file (with no file extension), then run the executable:

    cd hello
    go build 
    ./hello
    cd ..
    
  9. Execute the executable created:

    chmod 555 hello
    ./hello
    cd ..
    

Others

About

Sample code using the Go programming language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published