func parseProgramLine(line string, program *program.Program) error { key, value, err := getKeyVal(line) if err != nil { return err } if key == "command" { program.Command = value } if key == "directory" { program.Directory = value } if key == "priority" { program.Priority, err = strconv.ParseInt(value, 10, 64) } return err }