Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Sample (0.19 sec)

  1. src/cmd/cgo/doc.go

    	Note that the arguments are for "gcc", not "ld".
    
    	Example:
    	//go:cgo_ldflag "-lpthread"
    	//go:cgo_ldflag "-L/usr/local/sqlite3/lib"
    
    A package compiled with cgo will include directives for both
    internal and external linking; the linker will select the appropriate
    subset for the chosen linking mode.
    
    Example
    
    As a simple example, consider a package that uses cgo to call C.sin.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/operand_test.go

    // license that can be found in the LICENSE file.
    
    package asm
    
    import (
    	"internal/buildcfg"
    	"strings"
    	"testing"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    )
    
    // A simple in-out test: Do we print what we parse?
    
    func setArch(goarch string) (*arch.Arch, *obj.Link) {
    	buildcfg.GOOS = "linux" // obj can handle this OS for all architectures.
    	buildcfg.GOARCH = goarch
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    	hdr.Typeflag = TypeDir
    	// Force a PAX long name to be written. The name was taken from a practical example
    	// that fails and replaced ever char through numbers to anonymize the sample.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. src/bytes/example_test.go

    cui fliter <******@****.***> 1709194171 +0800
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  5. misc/ios/go_ios_exec.go

    	devID = getenv("GOIOS_DEV_ID")
    
    	// e.g. Z8B3JBXXXX.org.golang.sample, Z8B3JBXXXX prefix is available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	appID = getenv("GOIOS_APP_ID")
    
    	// e.g. Z8B3JBXXXX, available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	teamID = getenv("GOIOS_TEAM_ID")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    // Copyright 2009 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 bytes
    
    // Simple byte buffer for marshaling data.
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // smallBufferSize is an initial allocation minimal capacity.
    const smallBufferSize = 64
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. doc/asm.html

    </p>
    
    <h3 id="directives">Directives</h3>
    
    <p>
    The assembler uses various directives to bind text and data to symbol names.
    For example, here is a simple complete function definition. The <code>TEXT</code>
    directive declares the symbol <code>runtime·profileloop</code> and the instructions
    that follow form the body of the function.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    // zero value of sparseHoles logically represents a normal file (i.e., there are
    // no holes in it). On the other hand, the zero value of sparseDatas implies
    // that the file has no data in it, which is rather odd.
    //
    // As an example, if the underlying raw file contains the 10-byte data:
    //
    //	var compactFile = "abcdefgh"
    //
    // And the sparse map has the following entries:
    //
    //	var spd sparseDatas = []sparseEntry{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  9. doc/godebug.md

    A GODEBUG setting is a `key=value` pair
    that controls the execution of certain parts of a Go program.
    The environment variable `GODEBUG`
    can hold a comma-separated list of these settings.
    For example, if a Go program is running in an environment that contains
    
    	GODEBUG=http2client=0,http2server=0
    
    then that Go program will disable the use of HTTP/2 by default in both
    the HTTP client and the HTTP server.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. src/bufio/scan.go

    // deliver a final empty token (which is different from a nil token).
    // One could achieve the same behavior with a custom error value but
    // providing one here is tidier.
    // See the emptyFinalToken example for a use of this value.
    var ErrFinalToken = errors.New("final token")
    
    // Scan advances the [Scanner] to the next token, which will then be
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
Back to top