Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

go build 编译问题 #5

Open
ritech opened this issue Nov 6, 2020 · 0 comments
Open

go build 编译问题 #5

ritech opened this issue Nov 6, 2020 · 0 comments

Comments

@ritech
Copy link

ritech commented Nov 6, 2020

编译出现bug
./tcping.go:22:33: error: reference to undefined field or method ‘Microseconds’
var duration = float64(endTime.Microseconds()) / 1000.0
^
./tcping.go:24:16: error: incompatible type for return value 2 (cannot use type float64 as type float32)
return true, duration
^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant