title: Go App Engine get version in init() without Context
body: <p>Is there a way to to get my autoscaled application's VersionID in my <code>init()</code> function without a <code>Context</code>? The only available option seems to be <code>appengine.VersionID(context.Context)</code>. Manually scaled instances have <code>/_ah/start</code> called when they start up (giving access to a <code>Context</code>), but there is nothing like this for autoscaled instances.</p>
  
  <p>I am not caring about the generated ID that <code>appengine.VersionID</code> returns with it, just the app.yaml version.</p>
  
  <p>EDIT: A bit of context: I am wanting to deploy versions in the form x-x-x-dev or x-x-x-live and have my database connection depend on the version suffix. This way, when I look in the GCP console, I can be certain which deployed modules/services are using which database. Of course, I setup my DB connection pool in the <code>init()</code>, which has no access to a <code>Context</code>.</p>