This implements the last remaining link functions using the same logic as WASI. In doing so, this changes the signature for FS.ReadLink to be more similar to the rest of the functions. Particularly, it stops reading the result into a buffer. After this, the only syscalls left to implement in gojs are chown. Signed-off-by: Adrian Cole <adrian@tetrate.io>
7 lines
164 B
Go
7 lines
164 B
Go
//go:build !windows
|
|
|
|
package platform
|
|
|
|
// ToPosixPath returns the input, as only windows might return backslashes.
|
|
func ToPosixPath(in string) string { return in }
|