Skip to content

Instantly share code, notes, and snippets.

@mitchallen
Created March 22, 2022 02:43
Show Gist options
  • Save mitchallen/24b84e77014cc26f908eaa73c4371362 to your computer and use it in GitHub Desktop.
Save mitchallen/24b84e77014cc26f908eaa73c4371362 to your computer and use it in GitHub Desktop.
Example go package file
/**
* Author: Mitch Allen
* File: go-lib.go
*/
package lib
// Returns the sum of two numbers
func Add(a int, b int) int {
return a + b
}
// Returns the difference between two numbers
func Subtract(a int, b int) int {
return a - b
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment