Skip to content

Instantly share code, notes, and snippets.

View OddCN's full-sized avatar
🎯
Focusing

Junqiu Zheng OddCN

🎯
Focusing
View GitHub Profile
@OddCN
OddCN / GoCloud-Builder-model-way2.go
Last active April 27, 2018 15:11
the 2nd way we can code
package ecs
import (
"errors"
"github.com/cloudlibz/gocloud/aliauth"
)
const errCommon = "ali-cloud create node miss required parameter: "
type CreateNode struct {
@OddCN
OddCN / GoCloud-Builder-model-way1.go
Last active April 27, 2018 15:09
the 1st way we can code
package ecs
import (
"errors"
)
const errCommon = "ali-cloud create node miss required parameter: "
type CreateNode struct {
RegionID string //required
@OddCN
OddCN / GoCloud-Builder-user.go
Created April 27, 2018 14:55
when user use GoCloud
package main
import (
"test/test/testBuilderPattern/ecs"
"github.com/cloudlibz/gocloud/gocloud"
"fmt"
)
func main() {
alicloud, _ := gocloud.CloudProvider(gocloud.Aliprovider)