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
This is the current code sample from the readme...
import (
"fmt""github.com/imusmanmalik/randomizer"
)
funcmain() {
// Generate a random integer between 0 and 100n:=yourpackage.RandomInt(100)
fmt.Println(n)
// Generate a random byte slice with 16 bytesb:=yourpackage.RandomBytes(16)
fmt.Printf("%x\n", b)
// Generate a random string with 10 characterss:=yourpackage.RandomString(10)
fmt.Println(s)
}
As you see the coded uses the package yourpackage instead of randomizer which is an obvious error especially as the package itself is imported at the beginning of the code.
The text was updated successfully, but these errors were encountered:
This is the current code sample from the readme...
As you see the coded uses the package
yourpackage
instead ofrandomizer
which is an obvious error especially as the package itself is imported at the beginning of the code.The text was updated successfully, but these errors were encountered: