Skip to content

Instantly share code, notes, and snippets.

@fredhsu

fredhsu/shrun1.go

Created Oct 26, 2014
Embed
What would you like to do?
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