Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for emit (0.13 sec)

  1. src/cmd/api/main_test.go

    	case *types.Const:
    		if w.isDeprecated(obj) {
    			w.emitf("const %s //deprecated", obj.Name())
    		}
    		w.emitf("const %s %s", obj.Name(), w.typeString(obj.Type()))
    		x := obj.Val()
    		short := x.String()
    		exact := x.ExactString()
    		if short == exact {
    			w.emitf("const %s = %s", obj.Name(), short)
    		} else {
    			w.emitf("const %s = %s  // %s", obj.Name(), short, exact)
    		}
    	case *types.Var:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  2. doc/asm.html

    <pre>
    PCALIGN $32
    MOVD $2, R0
    </pre>
    </p>
    
    <h3 id="data-offsets">Interacting with Go types and constants</h3>
    
    <p>
    If a package has any .s files, then <code>go build</code> will direct
    the compiler to emit a special header called <code>go_asm.h</code>,
    which the .s files can then <code>#include</code>.
    The file contains symbolic <code>#define</code> constants for the
    offsets of Go struct fields, the sizes of Go struct types, and most
    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)
  3. src/cmd/api/api_test.go

    func TestMain(m *testing.M) {
    	flag.Parse()
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    	build.Default.GOROOT = testenv.GOROOT(nil)
    
    	os.Exit(m.Run())
    }
    
    var (
    	updateGolden = flag.Bool("updategolden", false, "update golden files")
    )
    
    func TestGolden(t *testing.T) {
    	if *flagCheck {
    		// slow, not worth repeating in -check
    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)
  4. src/cmd/cgo/doc.go

    The compiler options are passed through uninterpreted when
    invoking the C compiler to compile the C parts of the package.
    
    The following options are available when running cgo directly:
    
    	-V
    		Print cgo version and exit.
    	-debug-define
    		Debugging option. Print #defines.
    	-debug-gcc
    		Debugging option. Trace C compiler execution and output.
    	-dynimport file
    		Write list of symbols imported by file. Write to
    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)
  5. doc/go1.17_spec.html

    valid token.
    </p>
    
    <h3 id="Semicolons">Semicolons</h3>
    
    <p>
    The formal grammar uses semicolons <code>";"</code> as terminators in
    a number of productions. Go programs may omit most of these semicolons
    using the following two rules:
    </p>
    
    <ol>
    <li>
    When the input is broken into tokens, a semicolon is automatically inserted
    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)
  6. lib/time/update.bash

    	cat make.out
    	exit 2
    fi
    
    cd zoneinfo
    ../mkzip ../../zoneinfo.zip
    cd ../..
    
    files="update.bash zoneinfo.zip"
    modified=true
    if git diff --quiet $files; then
    	modified=false
    fi
    
    if [ "$1" = "-work" ]; then
    	echo Left workspace behind in work/.
    	shift
    else
    	rm -rf work
    fi
    
    if ! $modified; then
    	echo No updates needed.
    	exit 0
    fi
    
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 02 18:20:41 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. src/all.bash

    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    set -e
    if [ ! -f make.bash ]; then
    	echo 'all.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    . ./make.bash "$@" --no-banner
    bash run.bash --no-rebuild
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 11 19:53:58 GMT 2024
    - 377 bytes
    - Viewed (0)
  8. misc/wasm/go_wasip1_wasm_exec

    		;;
    	"wasmtime" | "")
    		exec wasmtime run --dir=/ --env PWD="$PWD" --env PATH="$PATH" -W max-wasm-stack=1048576 ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
    		;;
    	*)
    		echo "Unknown Go WASI runtime specified: $GOWASIRUNTIME"
    		exit 1
    		;;
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 17:09:10 GMT 2024
    - 797 bytes
    - Viewed (0)
  9. src/cmd/addr2line/addr2line_test.go

    // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise.
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_ADDR2LINETEST_IS_ADDR2LINE") != "" {
    		main()
    		os.Exit(0)
    	}
    
    	os.Setenv("GO_ADDR2LINETEST_IS_ADDR2LINE", "1") // Set for subprocesses to inherit.
    	os.Exit(m.Run())
    }
    
    // addr2linePath returns the path to the "addr2line" binary to run.
    func addr2linePath(t testing.TB) string {
    	t.Helper()
    	testenv.MustHaveExec(t)
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. lib/time/mkzip.go

    	"archive/zip"
    	"bytes"
    	"flag"
    	"fmt"
    	"hash/crc32"
    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go run mkzip.go zoneinfo.zip\n")
    	os.Exit(2)
    }
    
    func main() {
    	log.SetPrefix("mkzip: ")
    	log.SetFlags(0)
    	flag.Usage = usage
    	flag.Parse()
    	args := flag.Args()
    	if len(args) != 1 || !strings.HasSuffix(args[0], ".zip") {
    		usage()
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top