Skip to content

Commit 103184f

Browse files
committed
add product model with ID, Name, and Price fields
1 parent 85388c8 commit 103184f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

model/product.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package model
2+
3+
type Product struct {
4+
ID int `json:"id"`
5+
Name string `json:"name"`
6+
Price float64 `json:"price"`
7+
}

0 commit comments

Comments
 (0)