Skip to content

earnhardt3rd/goworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goworld

Another Go Repo to say Hello

Create a package

go build will trow away results, to use package use go install

go install will build and place package in %GOPATH%\pkg\windows_386\github.com\earnhardt3rd\goworld

-- add new package to main c:\work\myGo\src\github.com\earnhardt3rd\goworld>type hello.go package main

import ( "fmt" "github.com/earnhardt3rd/goworld/string" )

func main() { fmt.Println(string.Reverse("hello, world!")) }

--build c:\work\myGo\src\github.com\earnhardt3rd\goworld>go build

--run c:\work\myGo\src\github.com\earnhardt3rd\goworld>goworld.exe !dlrow ,olleh

About

Another Go Repo to say Hello

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages