我目前有3个文件,它们都有package main在顶部。/viewmodels/home.go./main.go:39: api.Home undefined (type API has no field or method Home)go buildgo build main.go api.go viewmodels&
我知道将高级语言代码转换为机器语言或可执行代码需要三个步骤,即编译、汇编和链接。按照go文档go tool编译执行以下操作- It then writes a single object file named for the basename of the first sourcefile with a .o suffixtest.go