Skip to content

Instantly share code, notes, and snippets.

@fredhsu
Created October 26, 2014 03:41
Show Gist options
  • Save fredhsu/45335f2cd5f5174e6674 to your computer and use it in GitHub Desktop.
Save fredhsu/45335f2cd5f5174e6674 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/fredhsu/go-eapi"
)
func main() {
cmds2 := []string{"enable", "show running-config"}
url1 := "https://admin:admin@bleaf1/command-api/"
msg1 := eapi.Call(url1, cmds2, "text")
fmt.Println(msg1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment