harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-0203harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-0203Task Description: Implementing File Path Utility Functions in Go
Your task is to implement a set of file path utility functions for the Go programming language in the /app/ directory, based on the provided test code. These functions are critical for manipulating file paths correctly across different operating systems.
Function: Clean(path string) string
. and .. in the path.// with /).Function: FromSlash(path string) string
/ with the file separator for Windows).Function: ToSlash(path string) string
/).Function: SplitList(list string) []string
; for Windows and : for Unix-like systems).Function: Split(path string) (dir, file string)
Function: Join(elem ...string) string
Function: Ext(path string) string
Function: Base(path string) string
..Function: Dir(path string) string
Function: IsAbs(path string) bool
Function: EvalSymlinks(path string) (string, error)
Function: Rel(root, path string) (string, error)
os and path/filepath packages for file manipulation and path handling as necessary.By completing this task, your implementation will meet the requirements outlined in the unit tests and provide robust functionality for file path management in Go.
Important: declare your solution in package filepath (the test file uses package filepath_test, so the implementation must use the matching package name).