fix(blog,prototype): order of paramenters in blog constructor

This commit is contained in:
Guz
2024-12-18 09:54:08 -03:00
parent dddaad65fd
commit b0bac675d9

View File

@@ -19,7 +19,7 @@ type Blog struct {
endpoint string
}
func NewBlog(repo, owner, endpoint string) *Blog {
func NewBlog(owner, repo, endpoint string) *Blog {
u, err := url.Parse(endpoint)
if err != nil {
panic(fmt.Sprintf("Blog Forgejo endpoint is not a valid URL: %v", err))