ficsit-cli-flake/cli/lockfile.go
2022-05-02 23:07:15 +03:00

18 lines
399 B
Go

package cli
type LockFile map[string]LockedMod
type LockedMod struct {
Version string `json:"version"`
Hash string `json:"hash"`
Link string `json:"link"`
Dependencies map[string]string `json:"dependencies"`
}
func (l LockFile) Clone() LockFile {
lockFile := make(LockFile)
for k, v := range l {
lockFile[k] = v
}
return lockFile
}