Skip to content

Some common go functionality strapped into a library

License

Notifications You must be signed in to change notification settings

mrlunchbox777/basiclib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/mrlunchbox777/basiclib

Some common go functionality strapped into a library.

Usage

Initialize your module

go mod init example.com/my-basiclib-demo

Get the go-lib module

Note that you need to include the v in the version tag.

Note that you need to replace X with the desired target.

go get github.com/mrlunchbox777/[email protected]
package main

import (
    "fmt"

    "github.com/mrlunchbox777/basiclib"
)

func main() {
    fmt.Println(basiclib.Add(2,3))
    fmt.Println(basiclib.Subtract(2,3))
}

Testing

This should provide sufficient testing.

go test

Tagging

X should be replaced by the desired target.

git tag vX.X.X
git push origin --tags

Attribution

See docs/ATTRIBUTION

About

Some common go functionality strapped into a library

Resources

License

Stars

Watchers

Forks

Packages

No packages published