Skip to content

Commit

Permalink
Tweeks to documentation
Browse files Browse the repository at this point in the history
Tweeks to documentation based on the output of linter.
  • Loading branch information
jwhitt3r committed Feb 15, 2021
1 parent 7c1062f commit f11256a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion internal/platform/directory/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func OutputToFile(path string, val string) error {
defer f.Close()

_, err = io.WriteString(f, val+"\n")

if err != nil {
log.Printf("Failed to print io line: %v", err)
}
return nil
}
10 changes: 5 additions & 5 deletions internal/repo/repo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package Repo contains different utilitiesto interact with GitHub.
// Package repo contains different utilitiesto interact with GitHub.
// This inclides, the downloading,fetching, and analysing of
// markdown files found in online repositories.
package repo
Expand Down Expand Up @@ -60,7 +60,7 @@ func (r *Repository) GetGithubContents(ctx context.Context, path string, filesDo

}

// NewRepoistory wraps the creation of a Repository type
// NewRepository wraps the creation of a Repository type
func NewRepository(owner string, reponame string, token string) *Repository {
r := Repository{
Owner: owner,
Expand All @@ -70,7 +70,7 @@ func NewRepository(owner string, reponame string, token string) *Repository {
return &r
}

// GitHubConnection creates a connection to GitHub with or without a
// NewGithubConnection creates a connection to GitHub with or without a
// personal access token. However, with a personal token this increases
// the number of times you can connect to a repository.
func (r *Repository) NewGithubConnection() {
Expand Down Expand Up @@ -167,8 +167,8 @@ func (r *Repository) Parse(f io.Reader) []string {
return links
}

// ParseFileHandler, will generate a file handler, which is then passed to the parse
// method to be analysed. This allows for the seperation of duties between the parser
// ParseFileHandler will generate a file handler, which is then passed to the parse
// method to be analysed. This allows for the separation of duties between the parser
// and the handling of files. This function will return the links that have been gathered
// from the parsed file.
func (r *Repository) ParseFileHandler(basepath string, fileName string) []string {
Expand Down
2 changes: 1 addition & 1 deletion internal/urlcheck/urlcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type URLChecker struct {
client http.Client
}

// NewURLChecker is a wrapper for the creation of a URLChecker type
// NewURLCheck is a wrapper for the creation of a URLChecker type
// which returns the address of the newly created URLChecker type.
func NewURLCheck(client http.Client) *URLChecker {
return &URLChecker{
Expand Down

0 comments on commit f11256a

Please sign in to comment.