Skip to content

Commit 3ca0433

Browse files
committed
Use named initialization for struct
1 parent 219c168 commit 3ca0433

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,13 @@ func moveToTemporaryGopath(srcdir string, importpath string) moveGopathInfo {
413413
log.Fatalf("Failed to rename %s to %s: %s\n", scratch, newdir, err.Error())
414414
}
415415

416-
return moveGopathInfo{scratch, realSrc, root, newdir, files}
416+
return moveGopathInfo{
417+
scratch: scratch,
418+
realSrc: realSrc,
419+
root: root,
420+
newdir: newdir,
421+
files: files,
422+
}
417423
}
418424

419425
func createPathTransformerFile(newdir string) *os.File {

0 commit comments

Comments
 (0)