go rewrite

This commit is contained in:
raf 2024-01-11 22:51:07 +03:00
commit d4290ff553
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
21 changed files with 437 additions and 552 deletions

11
internal/model/model.go Normal file
View file

@ -0,0 +1,11 @@
package model
type Battery struct {
Path string `json:"path"`
Command string `json:"command"`
ExtraCommand string `json:"extraCommand"`
}
type BatteryConfig struct {
BatPaths []Battery `json:"batPaths"`
}