结构型设计模式——外观

../_images/Facade.jpg

package main

import "fmt"

func Facade(num int){
if num == 1{
SystemA()
}else if num == 2{
SystemB()
}else if num == 3 {
SystemC()
}
}
func SystemA(){
fmt.Println("A")
}
func SystemB(){
fmt.Println("B")
}
func SystemC(){
fmt.Println("C")
}
原文地址:https://www.cnblogs.com/mcmx/p/11327981.html