feat: create standalone native fnOS repository
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package nginx
|
||||
|
||||
import "path/filepath"
|
||||
|
||||
func absNginxPath(path string) string {
|
||||
if path == "" {
|
||||
return ""
|
||||
}
|
||||
abs, err := filepath.Abs(path)
|
||||
if err != nil {
|
||||
return filepath.ToSlash(path)
|
||||
}
|
||||
return filepath.ToSlash(abs)
|
||||
}
|
||||
Reference in New Issue
Block a user