mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
14 lines
216 B
Go
14 lines
216 B
Go
package common
|
|
|
|
import (
|
|
"github.com/injoyai/logs"
|
|
"github.com/injoyai/tdx"
|
|
)
|
|
|
|
func Test(f func(c *tdx.Client)) {
|
|
c, err := tdx.Dial("124.71.187.122:7709", tdx.WithDebug())
|
|
logs.PanicErr(err)
|
|
f(c)
|
|
<-c.Done()
|
|
}
|