コード例 #1
0
ファイル: linker.go プロジェクト: nmakiya/tritium
func RunWithPackage(projectPath, scriptPath, fileName string, pkg *tp.Package, layers []string) (*tp.Transform, error) {
	objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers)
	return runWithObjs(objs, pkg, projectPath, scriptPath, layers)
}
コード例 #2
0
ファイル: checker.go プロジェクト: nmakiya/tritium
func CheckFile(projectPath, scriptPath, fileName string, layers []string) *CheckResult {
	objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers)
	return CheckBeforeLinking(objs)
}