cloudflare/cloudflared

Public

mirrored from https://github.com/cloudflare/cloudflaredAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2019.6.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

origin/build_info.go

19lines · modecode

1package origin
2
3import (
4 "runtime"
5)
6
7type BuildInfo struct {
8 GoOS string `json:"go_os"`
9 GoVersion string `json:"go_version"`
10 GoArch string `json:"go_arch"`
11}
12
13func GetBuildInfo() *BuildInfo {
14 return &BuildInfo{
15 GoOS: runtime.GOOS,
16 GoVersion: runtime.Version(),
17 GoArch: runtime.GOARCH,
18 }
19}
20