示例#1
0
文件: data.go 项目: jak-atx/vic
func NewData() *Data {
	d := &Data{
		Target:                 common.NewTarget(),
		MappedNetworks:         make(map[string]string),
		MappedNetworksGateways: make(map[string]net.IPNet),
		MappedNetworksIPRanges: make(map[string][]ip.Range),
		MappedNetworksDNS:      make(map[string][]net.IP),
	}
	return d
}
示例#2
0
文件: ui.go 项目: kjplatz/vic
func NewUI() *Plugin {
	p := &Plugin{Target: common.NewTarget()}
	return p
}