Created
March 5, 2019 03:59
-
-
Save chetangiridhar/838cada2d4c293624cf569de48548da4 to your computer and use it in GitHub Desktop.
Go plugin
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
package main | |
import "fmt" | |
// Add two integers | |
func Add(a int, b int) int { | |
fmt.Printf("\nAdding a=%d and b=%d", a, b) | |
return a + b | |
} | |
// Sub two integers | |
func Sub(a int, b int) int { | |
fmt.Printf("\nSubtracting b= %d from a=%d", b, a) | |
return a - b | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment