version-embed.go 506 B

1234567891011121314151617
  1. // Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package tailscaleroot embeds VERSION.txt into the binary.
  5. package tailscaleroot
  6. import _ "embed"
  7. //go:embed VERSION.txt
  8. var Version string
  9. // GoToolchainRev is the git hash from github.com/tailscale/go that this release
  10. // should be built using. It may end in a newline.
  11. //
  12. //go:embed go.toolchain.rev
  13. var GoToolchainRev string