X7ROOT File Manager
Current Path:
/opt/golang/1.17.2/src/path/filepath
opt
/
golang
/
1.17.2
/
src
/
path
/
filepath
/
📁
..
📄
example_test.go
(475 B)
📄
example_unix_test.go
(3.42 KB)
📄
example_unix_walk_test.go
(1.54 KB)
📄
export_test.go
(198 B)
📄
export_windows_test.go
(226 B)
📄
match.go
(8.34 KB)
📄
match_test.go
(8.42 KB)
📄
path.go
(17.29 KB)
📄
path_plan9.go
(1.19 KB)
📄
path_test.go
(35.97 KB)
📄
path_unix.go
(1.34 KB)
📄
path_windows.go
(4.88 KB)
📄
path_windows_test.go
(14.94 KB)
📄
symlink.go
(3.17 KB)
📄
symlink_unix.go
(136 B)
📄
symlink_windows.go
(2.92 KB)
Editing: example_test.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package filepath_test import ( "fmt" "path/filepath" ) func ExampleExt() { fmt.Printf("No dots: %q\n", filepath.Ext("index")) fmt.Printf("One dot: %q\n", filepath.Ext("index.js")) fmt.Printf("Two dots: %q\n", filepath.Ext("main.test.js")) // Output: // No dots: "" // One dot: ".js" // Two dots: ".js" }
Upload File
Create Folder