Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Go plugin
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