Skip to content

Instantly share code, notes, and snippets.

@mrtc0
Last active May 2, 2017 05:33
Show Gist options
  • Select an option

  • Save mrtc0/0c4853e96463fc042412ebb24bfb8dc2 to your computer and use it in GitHub Desktop.

Select an option

Save mrtc0/0c4853e96463fc042412ebb24bfb8dc2 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/lxc/lxd"
)
func main() {
var config *lxd.Config
config = &lxd.DefaultConfig
client, _ := lxd.NewClient(config, "local")
// fmt.Println(client, err)
// info, _ := client.ContainerInfo("test1")
// fmt.Println(info)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment