Created
March 22, 2022 02:43
-
-
Save mitchallen/24b84e77014cc26f908eaa73c4371362 to your computer and use it in GitHub Desktop.
Example go package file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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