change!: commandline tool from serpents/cobra/viper to couleuvre
Ajouter `config.Config` pour stocker valeurs de flags Migrer `cmd/` à couleuvre Ajouter `cmd.Cfg()` pour retourner une copie courante de la configuration. Cleanup dependencies avec `go get` et `go mod tidy` BREAKING: renommer flags BREAKING: déplacer `cmd.runServer` à `handlers.RunServer(cfg config.Config)` BREAKING: changer backend à couleuvre, qui gère différemment le commandline
This commit is contained in:
parent
cdcd10ba1e
commit
605206197a
9 changed files with 140 additions and 227 deletions
6
config/config.go
Normal file
6
config/config.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package config
|
||||
|
||||
type Config struct {
|
||||
ServerContenuDir string
|
||||
ServerPort int
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue