英文:
how can I get the app version in Go?
问题
我想将我在app.yaml中设置的版本作为查询字符串变量用于我的css和js文件,这样当我更新我的应用程序时,用户的浏览器将获取最新版本(如果已被缓存)。我找不到关于"appengine"包的好参考资料,我认为这个包中有我正在寻找的变量。有人可以帮帮我吗?
英文:
I want to use the version that I have set in app.yaml as a querystring variable for my css and js files, so that my user's browsers will grab the latest version if it has been cached when I update my app. I cannot find a good reference for the "appengine" package, which I assume has the variable that I am looking for. Can anyone help me out?
答案1
得分: 2
请查看以下的appengine/context方法:
https://developers.google.com/appengine/docs/go/reference#VersionID
英文:
See the following appengine/context method:
https://developers.google.com/appengine/docs/go/reference#VersionID
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论