Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for printr (0.17 sec)

  1. src/cmd/cgo/doc.go

    determined by how the memory was allocated; it has nothing to do with
    the type of the pointer.
    
    Note that values of some Go types, other than the type's zero value,
    always include Go pointers. This is true of string, slice, interface,
    channel, map, and function types. A pointer type may hold a Go pointer
    or a C pointer. Array and struct types may or may not include Go
    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. doc/go1.17_spec.html

    </p>
    
    <pre>
    [...]Point{{1.5, -3.5}, {0, 0}}     // same as [...]Point{Point{1.5, -3.5}, Point{0, 0}}
    [][]int{{1, 2, 3}, {4, 5}}          // same as [][]int{[]int{1, 2, 3}, []int{4, 5}}
    [][]Point{{{0, 1}, {1, 2}}}         // same as [][]Point{[]Point{Point{0, 1}, Point{1, 2}}}
    map[string]Point{"orig": {0, 0}}    // same as map[string]Point{"orig": Point{0, 0}}
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/ast.go

    // attached to the import "C" comment, a list of references to C.xxx,
    // a list of exported functions, and the actual AST, to be rewritten and
    // printed.
    func (f *File) ParseGo(abspath string, src []byte) {
    	// Two different parses: once with comments, once without.
    	// The printer is not good enough at printing comments in the
    	// right place when we start editing the AST behind its back,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/arena/arena.go

    }
    
    //go:linkname runtime_arena_newArena
    func runtime_arena_newArena() unsafe.Pointer
    
    //go:linkname runtime_arena_arena_New
    func runtime_arena_arena_New(arena unsafe.Pointer, typ any) any
    
    // Mark as noescape to avoid escaping the slice header.
    //
    //go:noescape
    //go:linkname runtime_arena_arena_Slice
    func runtime_arena_arena_Slice(arena unsafe.Pointer, slice any, cap int)
    
    //go:linkname runtime_arena_arena_Free
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  5. src/cmd/api/api_test.go

    		w.export(pkg)
    
    		if *updateGolden {
    			os.Remove(goldenFile)
    			f, err := os.Create(goldenFile)
    			if err != nil {
    				t.Fatal(err)
    			}
    			for _, feat := range w.Features() {
    				fmt.Fprintf(f, "%s\n", feat)
    			}
    			f.Close()
    		}
    
    		bs, err := os.ReadFile(goldenFile)
    		if err != nil {
    			t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg go/types, method (*PkgName) Pos() token.Pos
    pkg go/types, method (*PkgName) String() string
    pkg go/types, method (*PkgName) Type() Type
    pkg go/types, method (*Pointer) Elem() Type
    pkg go/types, method (*Pointer) String() string
    pkg go/types, method (*Pointer) Underlying() Type
    pkg go/types, method (*Scope) Child(int) *Scope
    pkg go/types, method (*Scope) Contains(token.Pos) bool
    pkg go/types, method (*Scope) End() token.Pos
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. misc/wasm/wasm_exec.js

    						delete this._values;
    						delete this._goRefCounts;
    						delete this._ids;
    						delete this._idPool;
    						this.exit(code);
    					},
    
    					// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
    					"runtime.wasmWrite": (sp) => {
    						sp >>>= 0;
    						const fd = getInt64(sp + 8);
    						const p = getInt64(sp + 16);
    						const n = this.mem.getInt32(sp + 24, true);
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  8. src/cmd/cgo/internal/test/callback.go

    	callbackMutex.Unlock()
    
    	// Pass the address of i because the C function was written to
    	// take a pointer.  We could pass an int if we felt like
    	// rewriting the C code.
    	C.callback(unsafe.Pointer(&i))
    
    	callbackMutex.Lock()
    	delete(callbackFuncs, i)
    	callbackMutex.Unlock()
    }
    
    //export goCallback
    func goCallback(p unsafe.Pointer) {
    	i := *(*int)(p)
    
    	callbackMutex.Lock()
    	f := callbackFuncs[i]
    	callbackMutex.Unlock()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/operand_test.go

    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
    	architecture := arch.Set(goarch, false)
    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)
  10. src/cmd/cgo/godefs.go

    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/printer"
    	"go/token"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    // godefs returns the output for -godefs mode.
    func (p *Package) godefs(f *File, args []string) string {
    	var buf strings.Builder
    
    	fmt.Fprintf(&buf, "// Code generated by cmd/cgo -godefs; DO NOT EDIT.\n")
    	fmt.Fprintf(&buf, "// %s %s\n", filepath.Base(args[0]), strings.Join(args[1:], " "))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
Back to top