FAQ
- What is the difference between
v2.5.xandv2.6.x?
v2.5.xand below usevaluepassing,v2.6.xand above usepointerpassing. It is strongly recommended to usev2.6.xand above.
- Timezone error when deploying on
Windowssystem
If the
Windowssystem does not have thegolangenvironment installed, theGOROOT/lib/time/zoneinfo.zip: no such file or directoryexception will be reported during deployment. The reason is that theWindowssystem does not have a built-in time zone file. You only need to manually download and specify thezoneinfo.zippath, such asgo/lib/time/zoneinfo.zip
os.Setenv("ZONEINFO", "./go/lib/time/zoneinfo.zip")- Timezone error when deploying on
Dockercontainer
If the
dockercontainer does not have thegolangenvironment installed, theopen /usr/local/go/lib/time/zoneinfo.zip: no such file or directoryexception will be reported during deployment. You only need to copyzoneinfo.zipto the container, that is, add it to theDockerfile
COPY ./zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip