From 26289f4b8ec01a7449ccc90130836915c9fb4171 Mon Sep 17 00:00:00 2001 From: mnau23 <51322165+mnau23@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:54:10 +0100 Subject: [PATCH] fix go instructions --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ce5773a6..766338c2 100644 --- a/README.md +++ b/README.md @@ -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('myemail@yopmail.com') { - log.Fatal('O RLY !'); +if !mail_checker.IsValid("myemail@yopmail.com") { + log.Fatal("O RLY !"); } -if !mail_checker.IsValid('myemail.com') { +if !mail_checker.IsValid("myemail.com") { log.Fatal("O RLY !") } ``` @@ -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