mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Move core:path to core:path/slashpath
This is to reduce the confusion that occurs between that package and the `core:path/filepath` package
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
package path
|
||||||
|
|
||||||
|
#panic(
|
||||||
|
`core:path/slashpath - for paths separated by forward slashes, e.g. paths in URLs, this does not deal with OS-specific paths
|
||||||
|
core:path/filepath - uses either forward slashes or backslashes depending on the operating system, deals with Windows/NT paths with volume letters or backslashes (on the related platforms)`)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package path
|
package slashpath
|
||||||
|
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
import "core:unicode/utf8"
|
import "core:unicode/utf8"
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
// The path package is only to be used for paths separated by forward slashes,
|
// The slashpath package is only to be used for paths separated by forward slashes,
|
||||||
// e.g. paths in URLs
|
// e.g. paths in URLs
|
||||||
//
|
//
|
||||||
// This package does not deal with Windows/NT paths with volume letters or backslashes
|
// This package does not deal with Windows/NT paths with volume letters or backslashes
|
||||||
// To manipulate operating system specific paths, use the path/filepath package
|
// To manipulate operating system specific paths, use the path/filepath package
|
||||||
package path
|
package slashpath
|
||||||
|
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
|
|
||||||
Reference in New Issue
Block a user