示例#1
0
// NewGoTarget creates a new NodeJSTarget based on a known target name
// from core.
func NewGoTarget(name string, pack *Pack) *GoTarget {
	return &GoTarget{core.MustGetTargetBase(name, pack), pack}
}
示例#2
0
// NewNodeJSTarget creates a new NodeJSTarget based on a known target name
// from core.
func NewNodeJSTarget(name string, pack *Pack) *NodeJSTarget {
	return &NodeJSTarget{core.MustGetTargetBase(name, pack), pack}
}