posh/pkg/config/package.go
Kevin Franklin Kim e2ad376b6c initial commit
2023-01-03 15:37:15 +01:00

16 lines
322 B
Go

package config
import (
"fmt"
)
type Package struct {
Name string `json:"name" yaml:"name"`
Version string `json:"version" yaml:"version"`
Command string `json:"command" yaml:"command"`
}
func (c Package) String() string {
return fmt.Sprintf("Name: %s, Version: %s Command: %s", c.Name, c.Version, c.Command)
}