3 Star 3 Fork 0

Gitee 极速下载/websocketd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/joewalnes/websocketd
克隆/下载
version.go 633 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alex Sergeyev 提交于 2015-03-03 15:59 . Changed --version output for #123
// Copyright 2013 Joe Walnes and the websocketd team.
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"fmt"
"runtime"
)
// This value can be set for releases at build time using:
// go {build|run} -ldflags "-X main.version 1.2.3 -X main.buildinfo timestamp-@githubuser-platform".
// If unset, Version() shall return "DEVBUILD".
var version string = "DEVBUILD"
var buildinfo string = "--"
func Version() string {
return fmt.Sprintf("%s (%s %s-%s) %s", version, runtime.Version(), runtime.GOOS, runtime.GOARCH, buildinfo)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/websocketd.git
git@gitee.com:mirrors/websocketd.git
mirrors
websocketd
websocketd
master

搜索帮助