Skip to content

Commit

Permalink
renames, and little things
Browse files Browse the repository at this point in the history
  • Loading branch information
heilkit committed May 1, 2024
1 parent 02dd069 commit 145fbef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.idea/
downloads/
target/
go.sum
old.json
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,10 @@ func main() {
}
}

```

## [Library] go.mod

```
github.com/heilkit/tt v1.1.0
```
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/cavaliergopher/grab/v3 v3.0.1 h1:4z7TkBfmPjmLAAmkkAZNX/6QJ1nNFdv3SdIHXju0Fr4=
github.com/cavaliergopher/grab/v3 v3.0.1/go.mod h1:1U/KNnD+Ft6JJiYoYBAimKH2XrYptb8Kl3DFGmsjpq4=
4 changes: 2 additions & 2 deletions tt/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ func (opt *DownloadOpt) WithDefaults() *DownloadOpt {
return opt
}

func Download(filename string, opt ...*DownloadOpt) (post *Post, filenames []string, err error) {
func Download(url string, opt ...*DownloadOpt) (post *Post, filenames []string, err error) {
opts := &DownloadOpt{}
if len(opt) > 0 {
opts = opt[0]
}
post, err = GetPost(filename, opts.SD)
post, err = GetPost(url, opts.SD)
if err != nil {
return nil, nil, fmt.Errorf("Download -> GetPost: %w", err)
}
Expand Down

0 comments on commit 145fbef

Please sign in to comment.