Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 2014 (0.03 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/crypto/cipher/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 cipher_test
    
    import (
    	"bytes"
    	"crypto/aes"
    	"crypto/cipher"
    	"crypto/rand"
    	"encoding/hex"
    	"fmt"
    	"io"
    	"os"
    )
    
    func ExampleNewGCM_encrypt() {
    	// Load your secret key from a safe place and reuse it across multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  3. 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)
  4. 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