Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for 2014 (0.12 sec)

  1. src/strings/example_test.go

    // Copyright 2012 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 strings_test
    
    import (
    	"fmt"
    	"strings"
    	"unicode"
    	"unsafe"
    )
    
    func ExampleClone() {
    	s := "abc"
    	clone := strings.Clone(s)
    	fmt.Println(s == clone)
    	fmt.Println(unsafe.StringData(s) == unsafe.StringData(clone))
    	// Output:
    	// true
    	// false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:05:38 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. src/time/example_test.go

    	// Unix format: Wed Feb 25 11:06:39 PST 2015
    	// Same, in UTC: Wed Feb 25 19:06:39 UTC 2015
    	//in Shanghai with seconds: 2015-02-26T03:06:39 +080000
    	//in Shanghai with colon seconds: 2015-02-26T03:06:39 +08:00:00
    	//
    	// Formats:
    	//
    	// Basic full date  "Mon Jan 2 15:04:05 MST 2006" gives "Wed Feb 25 11:06:39 PST 2015"
    	// Basic short date "2006/01/02" gives "2015/02/25"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  3. src/regexp/example_test.go

    // Copyright 2013 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 regexp_test
    
    import (
    	"fmt"
    	"regexp"
    	"strings"
    )
    
    func Example() {
    	// Compile the expression once, usually at init time.
    	// Use raw strings to avoid having to quote the backslashes.
    	var validID = regexp.MustCompile(`^[a-z]+\[[0-9]+\]$`)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:22:53 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top