FAQ
- What is the difference between
v2.5.x
andv2.6.x
?
v2.5.x
and below usevalue
passing,v2.6.x
and above usepointer
passing. It is strongly recommended to usev2.6.x
and above.
- Timezone error when deploying on
Windows
system
If the
Windows
system does not have thegolang
environment installed, theGOROOT/lib/time/zoneinfo.zip: no such file or directory
exception will be reported during deployment. The reason is that theWindows
system does not have a built-in time zone file. You only need to manually download and specify thezoneinfo.zip
path, such asgo/lib/time/zoneinfo.zip
os.Setenv("ZONEINFO", "./go/lib/time/zoneinfo.zip")
- Timezone error when deploying on
Docker
container
If the
docker
container does not have thegolang
environment installed, theopen /usr/local/go/lib/time/zoneinfo.zip: no such file or directory
exception will be reported during deployment. You only need to copyzoneinfo.zip
to the container, that is, add it to theDockerfile
COPY ./zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip