# command-line-arguments ./main.go:40:17: undefined: Config ./main.go:41:27: undefined: visitor ./main.go:78:52: undefined: userStatus ./main.go:147:23: undefined: Config ./main.go:161:24: undefined: Config ./main.go:178:6: b.handleWebPlayURL undefined (type *BiliroamingGo has no field or method handleWebPlayURL) ./main.go:180:6: b.handleWebSearch undefined (type *BiliroamingGo has no field or method handleWebSearch) ./main.go:182:6: b.handleAndroidSearch undefined (type *BiliroamingGo has no field or method handleAndroidSearch) ./main.go:184:6: b.handleAndroidPlayURL undefined (type *BiliroamingGo has no field or method handleAndroidPlayURL) ./main.go:186:6: b.handleBstarAndroidSearch undefined (type *BiliroamingGo has no field or method handleBstarAndroidSearch) ./main.go:186:6: too many errors
没有Makefile哪里来的二进制文件./biliroaming-go-server
直接运行go run main.go报错
# command-line-arguments ./main.go:40:17: undefined: Config ./main.go:41:27: undefined: visitor ./main.go:78:52: undefined: userStatus ./main.go:147:23: undefined: Config ./main.go:161:24: undefined: Config ./main.go:178:6: b.handleWebPlayURL undefined (type *BiliroamingGo has no field or method handleWebPlayURL) ./main.go:180:6: b.handleWebSearch undefined (type *BiliroamingGo has no field or method handleWebSearch) ./main.go:182:6: b.handleAndroidSearch undefined (type *BiliroamingGo has no field or method handleAndroidSearch) ./main.go:184:6: b.handleAndroidPlayURL undefined (type *BiliroamingGo has no field or method handleAndroidPlayURL) ./main.go:186:6: b.handleBstarAndroidSearch undefined (type *BiliroamingGo has no field or method handleBstarAndroidSearch) ./main.go:186:6: too many errors