You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func main() {
// get clock ticks, this will return the same as C.sysconf(C._SC_CLK_TCK)
clktck, err := sysconf.Sysconf(sysconf.SC_CLK_TCK)
if err != nil {
fmt.Printf("SC_CLK_TCK: %v\n", clktck)
}
}
I think the if block should execute if there is no error, i.e. if err == nil.
Currently the example is printing the value of clktck if an error occurred.
The text was updated successfully, but these errors were encountered:
README.md has the following example:
I think the if block should execute if there is no error, i.e.
if err == nil
.Currently the example is printing the value of
clktck
if an error occurred.The text was updated successfully, but these errors were encountered: