Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 5670 (0.12 sec)

  1. src/bytes/example_test.go

    	fmt.Println(string(bytes.TrimLeftFunc([]byte("go-gopher!"), unicode.IsPunct)))
    	fmt.Println(string(bytes.TrimLeftFunc([]byte("1234go-gopher!567"), unicode.IsNumber)))
    	// Output:
    	// -gopher
    	// go-gopher!
    	// go-gopher!567
    }
    
    func ExampleTrimPrefix() {
    	var b = []byte("Goodbye,, world!")
    	b = bytes.TrimPrefix(b, []byte("Goodbye,"))
    	b = bytes.TrimPrefix(b, []byte("See ya,"))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. src/archive/zip/zip_test.go

    		UncompressedSize: 987654321,
    		ModifiedTime:     1234,
    		ModifiedDate:     5678,
    	}
    	testHeaderRoundTrip(fh, fh.UncompressedSize, uint64(fh.UncompressedSize), t)
    }
    
    func TestFileHeaderRoundTrip64(t *testing.T) {
    	fh := &FileHeader{
    		Name:               "foo.txt",
    		UncompressedSize64: 9876543210,
    		ModifiedTime:       1234,
    		ModifiedDate:       5678,
    	}
    	testHeaderRoundTrip(fh, uint32max, fh.UncompressedSize64, t)
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
Back to top