/GoPackaging

Testing ability to package repository so it can be downloaded with go get.

Primary LanguageGo

Go Packaging

Demonstrate building a golang library that can be directory imported from github using only the standard git command line tools. This is essential to reduce temptation of including shared libraries using cut and paste.

Testing ability to package GOLANG package for direct use by GO compiler.

Download sample repository for use by GO

Make sure you have set GOPATH before attempting to download and use packages.

  go get -u "github.com/joeatbayes/GoPackaging/sample_library"

Use the Sample Library as imported package

import "github.com/joeatbayes/GOPackaging/sample_library"

Make & run Sample Program

go get "github.com/joeatbayes/GoPackaging/sample_library"

go build test_git_import.go

.\test_git_import 

Use go get -u to fetch most recent changes of a library.

Important Files

License:

Copyright 2018 Joseph Ellsworth MIT License