Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 257 Bytes
package prime_test
import (
"fmt"
"github.com/afshin/prime"
)
func ExampleIsPrime() {
var candidate uint64 = 5
if prime.IsPrime(candidate) {
fmt.Println("Five is prime.")
} else {
fmt.Println("Five is not prime.")
}
// Output: Five is prime.
}