Created
October 26, 2014 03:41
-
-
Save fredhsu/45335f2cd5f5174e6674 to your computer and use it in GitHub Desktop.
This file contains 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" | |
"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