Skip to content

Commit

Permalink
Merge pull request #507 from mnau23/update-readme
Browse files Browse the repository at this point in the history
fix: correct Go instructions in README
  • Loading branch information
FGRibreau authored Jan 3, 2025
2 parents 7fd0d34 + 26289f4 commit bd5ff2b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ package main

import (
"log"
"github.com/FGRibreau/mailchecker/platform/go"

mail_checker "github.com/FGRibreau/mailchecker/v6/platform/go"
)

if !mail_checker.IsValid('[email protected]') {
log.Fatal('O RLY !');
if !mail_checker.IsValid("[email protected]") {
log.Fatal("O RLY !");
}

if !mail_checker.IsValid('myemail.com') {
if !mail_checker.IsValid("myemail.com") {
log.Fatal("O RLY !")
}
```
Expand All @@ -235,7 +235,7 @@ if !mail_checker.IsValid('myemail.com') {

Go
```bash
go get https://github.com/FGRibreau/mailchecker
go get github.com/FGRibreau/mailchecker/v6/platform/go
```

NodeJS/JavaScript
Expand Down

0 comments on commit bd5ff2b

Please sign in to comment.