Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Case (0.16 sec)

  1. doc/go1.17_spec.html

    </p>
    
    <pre>
    switch tag {
    default: s3()
    case 0, 1, 2, 3: s1()
    case 4, 5, 6, 7: s2()
    }
    
    switch x := f(); {  // missing switch expression means "true"
    case x &lt; 0: return -x
    default: return x
    }
    
    switch {
    case x &lt; y: f1()
    case x &lt; z: f2()
    case x == 4: f3()
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    		case 1:
    			t.Go = c.uint8
    		case 2:
    			t.Go = c.uint16
    		case 4:
    			t.Go = c.uint32
    		case 8:
    			t.Go = c.uint64
    		case 1 + signedDelta:
    			t.Go = c.int8
    		case 2 + signedDelta:
    			t.Go = c.int16
    		case 4 + signedDelta:
    			t.Go = c.int32
    		case 8 + signedDelta:
    			t.Go = c.int64
    		}
    
    	case *dwarf.FloatType:
    		switch t.Size {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    	switch m := fs.FileMode(fi.h.Mode) &^ 07777; m {
    	case c_ISDIR:
    		mode |= fs.ModeDir
    	case c_ISFIFO:
    		mode |= fs.ModeNamedPipe
    	case c_ISLNK:
    		mode |= fs.ModeSymlink
    	case c_ISBLK:
    		mode |= fs.ModeDevice
    	case c_ISCHR:
    		mode |= fs.ModeDevice
    		mode |= fs.ModeCharDevice
    	case c_ISSOCK:
    		mode |= fs.ModeSocket
    	}
    
    	switch fi.h.Typeflag {
    	case TypeSymlink:
    		mode |= fs.ModeSymlink
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  4. src/cmd/cgo/doc.go

    	go tool fix -r cftype <pkg>
    	go tool fix -r jni <pkg>
    
    It will replace nil with 0 in the appropriate places.
    
    The EGLDisplay case was introduced in Go 1.12. Use the egl rewrite
    to auto-update code from Go 1.11 and earlier:
    
    	go tool fix -r egl <pkg>
    
    The EGLConfig case was introduced in Go 1.15. Use the eglconf rewrite
    to auto-update code from Go 1.14 and earlier:
    
    	go tool fix -r eglconf <pkg>
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. misc/wasm/go_wasip1_wasm_exec

    #!/usr/bin/env bash
    # Copyright 2023 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.
    
    case "$GOWASIRUNTIME" in
    	"wasmedge")
    		exec wasmedge --dir=/ --env PWD="$PWD" --env PATH="$PATH" ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
    		;;
    	"wasmer")
    		exec wasmer run --dir=/ --env PWD="$PWD" --env PATH="$PATH" ${GOWASIRUNTIMEARGS:-} "$1" -- "${@:2}"
    		;;
    	"wazero")
    Shell Script
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 17:09:10 GMT 2024
    - 797 bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    }
    
    func (p *Parser) pseudo(word string, operands [][]lex.Token) bool {
    	switch word {
    	case "DATA":
    		p.asmData(operands)
    	case "FUNCDATA":
    		p.asmFuncData(operands)
    	case "GLOBL":
    		p.asmGlobl(operands)
    	case "PCDATA":
    		p.asmPCData(operands)
    	case "PCALIGN":
    		p.asmPCAlign(operands)
    	case "TEXT":
    		p.asmText(operands)
    	default:
    		return false
    	}
    	return true
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    func Index(s, sep []byte) int {
    	n := len(sep)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, sep[0])
    	case n == len(s):
    		if Equal(sep, s) {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and sep both are small
    		if len(s) <= bytealg.MaxBruteForce {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. doc/go_spec.html

    </p>
    
    <pre>
    switch tag {
    default: s3()
    case 0, 1, 2, 3: s1()
    case 4, 5, 6, 7: s2()
    }
    
    switch x := f(); {  // missing switch expression means "true"
    case x &lt; 0: return -x
    default: return x
    }
    
    switch {
    case x &lt; y: f1()
    case x &lt; z: f2()
    case x == 4: f3()
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
  9. src/builtin/builtin.go

    //	slice = append(slice, anotherSlice...)
    //
    // As a special case, it is legal to append a string to a byte slice, like this:
    //
    //	slice = append([]byte("hello "), "world"...)
    func append(slice []Type, elems ...Type) []Type
    
    // The copy built-in function copies elements from a source slice into a
    // destination slice. (As a special case, it also will copy bytes from a
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/asm.go

    	switch valueAddr.Type {
    	case obj.TYPE_CONST:
    		switch sz {
    		case 1, 2, 4, 8:
    			nameAddr.Sym.WriteInt(p.ctxt, nameAddr.Offset, int(sz), valueAddr.Offset)
    		default:
    			p.errorf("bad int size for DATA argument: %d", sz)
    		}
    	case obj.TYPE_FCONST:
    		switch sz {
    		case 4:
    			nameAddr.Sym.WriteFloat32(p.ctxt, nameAddr.Offset, float32(valueAddr.Val.(float64)))
    		case 8:
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
Back to top