Problems with importing a package from golang.org

Hi all,
I have a problem of importing the following
golang.org/x/text/encoding/charmap package. Then, i have looked at the golang.org and the package is there.

Is it possible to help me with that?

I am using windows 10 and developing with VS Code.

Thanks in advance

What problem do you have? What does not work? Do you get an error? Which?

The compiler gives this message: *

no package for import The Go Programming Language)compiler

Hi,
please, don’t put attention to my previous reply, I made a mistake.
The compiler says golang.org/x/text/encoding/charmap -no package to import.
Thanks in advance

The documentation tells us to

import "import "golang.org/x/text/encoding/charmap" " 

The go command downloads and installs a module:

$ go get import "golang.org/x/text/encoding/charmap" 

Hi,
Thank you very much for the help, everything works well!!!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.