Hi, Is there an API to get the module name of the current workspace?
I was using code like below to read source files in a directory for codegen ``` pkg, err := build.Default.Import(directory, "", 0) ``` with modules, packages are prefixed with module `name`. so, I may have to strip off it to build the path (directory) so, is there a way to read the module name, or a better way to import the package (build.Default.Import) without relying on GOPATH. thanks. bsr. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
