Skip to content

Commit

Permalink
fix: no need to initialize new in and out structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismael GraHms committed Nov 26, 2023
1 parent 31ea44d commit ff7e9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
Create a new API endpoint using the `NewRouter` function:

```go
product := worx.NewRouter[Product, ProductResponse]("/products", Product{}, ProductResponse{})
product := worx.NewRouter[Product, ProductResponse]("/products")
```

### 4. Include Routes in Your Application:
Expand Down

0 comments on commit ff7e9ab

Please sign in to comment.