zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.34k stars 3.96k forks source link

goctl生成的client代码import路径能用什么参数控制吗 默认好像是gopath到当前目录 #4423

Closed wdfky closed 1 month ago

wdfky commented 1 month ago

// Code generated by goctl. DO NOT EDIT. // goctl 1.7.2 // Source: demo.proto

package democlient

import ( "context"

"src/github.com/demo/demo"

"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"

)

wdfky commented 1 month ago

和gomod配置有关系 goland默认不用gomod导致的

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It has something to do with gomod configuration. Goland does not use gomod by default.