feat: criando a view do menu e as regras de cadastro e listagem de produtos

This commit is contained in:
2026-07-14 20:16:10 -03:00
parent ada03a9ddb
commit 70f433ce2b
5 changed files with 97 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
package controller
import (
"bufio"
"controle-de-estoque/model"
"controle-de-estoque/view"
)
type Controller struct {
inventory *model.Inventory
}
func New(inventory *model.Inventory) *Controller {
return &Controller{inventory: inventory}
}
func (c *Controller) CapturarComando(scanner *bufio.Scanner) {
view.ExibirMenu()
// scanner.Scan()
}