Skip to content

Commit

Permalink
fix go instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mnau23 committed Jan 3, 2025
1 parent 7fd0d34 commit 26289f4
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 26289f4

Please sign in to comment.