1 Star 0 Fork 0

李晓晓 / go-netdicom

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
utils.go 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yaz Saito 提交于 2018-04-10 09:16 . Improve dicom logging.
package netdicom
import (
"fmt"
"sync/atomic"
)
var idSeq int32 = 32 // for generating unique ID
func newUID(prefix string) string {
return fmt.Sprintf("%s-%d", prefix, atomic.AddInt32(&idSeq, 1))
}
func doassert(cond bool, values ...interface{}) {
if !cond {
var s string
for _, value := range values {
s += fmt.Sprintf("%v ", value)
}
panic(s)
}
}
Go
1
https://gitee.com/weili0115/go-netdicom.git
git@gitee.com:weili0115/go-netdicom.git
weili0115
go-netdicom
go-netdicom
6ca77c57cdf9

搜索帮助