harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-4039
harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-4039
Task: Implement the functionality for the FixerVirtualBoxGAAttach type in Go, ensuring it adheres to the following requirements:
FixerVirtualBoxGAAttach
Define the Fixer interface: Ensure that FixerVirtualBoxGAAttach implements the Fixer interface.
Fixer
Implement the Fix method:
Fix
func (f *FixerVirtualBoxGAAttach) Fix(input map[string]interface{}) (map[string]interface{}, error)
input
builders
Logic for the Fix method:
guest_additions_attach
false
guest_additions_mode
"upload"
true
"attach"
File placement: The implementation must be placed in the /app/ directory of the project.
/app/
Error Handling: The method should return an error if there is an issue with the input map structure (e.g., if builders is not found).
Make sure your implementation passes the provided unit tests.
Important: declare your solution in package fix (the test file uses package fix, so the implementation must use the matching package name).
package fix