mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
16 lines
322 B
Go
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)
|
|
}
|