Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ExampleIsAbs (0.73 sec)

  1. src/path/example_test.go

    	// a
    	// /
    	// .
    }
    
    func ExampleExt() {
    	fmt.Println(path.Ext("/a/b/c/bar.css"))
    	fmt.Println(path.Ext("/"))
    	fmt.Println(path.Ext(""))
    	// Output:
    	// .css
    	//
    	//
    }
    
    func ExampleIsAbs() {
    	fmt.Println(path.IsAbs("/dev/null"))
    	// Output: true
    }
    
    func ExampleJoin() {
    	fmt.Println(path.Join("a", "b", "c"))
    	fmt.Println(path.Join("a", "b/c"))
    	fmt.Println(path.Join("a/b", "c"))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 19 00:10:22 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  2. src/path/filepath/example_unix_test.go

    	fmt.Println(filepath.Dir(""))
    
    	// Output:
    	// On Unix:
    	// /foo/bar
    	// /foo/bar
    	// /foo/bar/baz
    	// /dirty/path
    	// .
    	// ..
    	// .
    	// .
    	// /
    	// .
    }
    
    func ExampleIsAbs() {
    	fmt.Println("On Unix:")
    	fmt.Println(filepath.IsAbs("/home/gopher"))
    	fmt.Println(filepath.IsAbs(".bashrc"))
    	fmt.Println(filepath.IsAbs(".."))
    	fmt.Println(filepath.IsAbs("."))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.4K bytes
    - Viewed (0)
Back to top