Skip to content

Commit

Permalink
Checker updated
Browse files Browse the repository at this point in the history
mesuutt committed Jul 11, 2019

Verified

This commit was signed with the committer’s verified signature.
1 parent 0fc5b4d commit 58d54be
Showing 2 changed files with 12 additions and 23 deletions.
12 changes: 12 additions & 0 deletions checker.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"io/ioutil"
"net/http"
"strings"
@@ -9,6 +10,17 @@ import (

type resultChan chan *Check

type Check struct {
site *Site
username string
found bool // Keeps username is found or not on the website
failed bool // Keeps check is success or not
}

func (c *Check) ProfileUrl() string {
return fmt.Sprintf(c.site.profileUrl, c.username)
}

type Checker struct {
username string
sites []Site
23 changes: 0 additions & 23 deletions result.go

This file was deleted.

0 comments on commit 58d54be

Please sign in to comment.