mjschmidt / hello

trying to link and test hello gocode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello World (Go) + So much more!

Purpose

The purpose of this project was to learn to hook my Atom Editor to both Go and Github. The definition of done is as followed:

  • Connect git to Github
  • Run hello world go program
  • Values
  • Variables
  • Constants
  • For
  • If/Else
  • Switch
  • Arrays
  • Slices
  • Maps
  • Range
  • Functions
  • Multiple Return Values
  • Variadic Functions
  • Closures
  • Recursion
  • Pointers
  • Structs
  • Methods
  • Interfaces
  • Errors
  • Goroutines
  • Channels
  • Channel Buffering
  • Channel Synchronization
  • Channel Directions
  • Select
  • Timeouts
  • Non-Blocking Channel Operations
  • Closing Channels
  • Range over Channels
  • Timers
  • Tickers
  • Worker Pools
  • Rate Limiting
  • Atomic Counters
  • Mutexes
  • Stateful Goroutines
  • Sorting
  • Sorting by Functions
  • Panic
  • Defer
  • Collection Functions
  • String Functions
  • String Formatting
  • Regular Expressions
  • JSON
  • Time
  • Epoch
  • Time Formatting / Parsing
  • Random Numbers
  • Number Parsing
  • URL Parsing
  • SHA1 Hashes
  • Base64 Encoding
  • Reading Files
  • Writing Files
  • Line Filters
  • Command-Line Arguments
  • Command-Line Flags
  • Environment Variables
  • Spawning Processes
  • Exec'ing Processes
  • Signals
  • Exit

How to connect to git

To connect your Atom browser to get, first watch some youtube videos on how to set your Atom IDE up to theoretically connect to git. Then (honestly this was a moth or two ago so I really don't remember that well how to get this done... sorry friends.) once that is setup, you can edit your .git/congif file to include the following lines

[remote "origin"]
			url = "https://github.com/mjschmidt/hello.git"

[branch "master"]
	remote = origin
	merge = refs/heads/master

After that you will need to create the git project on github so that your project has something to connect up to. But once that is done, you should be able to do git things with your git bash from online connected up to your github account. Again the bottom left has the ability to fetch, pull and push. Left click or setup your hotkeys to be able to do this automagically.

Running go programs,

So you will want to setup your Atom IDE to be able to run your computer's command line stuff. To do this install a terminal package through the Atom, download packages area. Right now to bring that up you can do a ctr + sift + p and type install packages.

Once you have your terminal installed you can use the hotkey of ctr + ` to open your shell session. and from there its is a simple

go run hello.go
PS C:\Users\Mike\Documents\GitHub\Atom\src\hello> go run hello.go
hello world
PS C:\Users\Mike\Documents\GitHub\Atom\src\hello>

About

trying to link and test hello gocode


Languages

Language:Go 100.0%