Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for causal (0.21 sec)

  1. src/bytes/buffer.go

    	// pattern so that the compiler can call runtime.growslice. For example:
    	//	return append(b, make([]byte, n)...)
    	// This avoids unnecessary zero-ing of the first len(b) bytes of the
    	// allocated slice, but this pattern causes b to escape onto the heap.
    	//
    	// Instead use the append-make pattern with a nil slice to ensure that
    	// we allocate buffers rounded up to the closest size class.
    	c := len(b) + n // ensure enough space for n elements
    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)
  2. src/cmd/cgo/gcc.go

    			n.Kind = "type"
    		case notIntConst | notNumConst | notStrLiteral | notType:
    			n.Kind = "not-type"
    		}
    		needType = append(needType, n)
    	}
    	if nerrors > 0 {
    		// Check if compiling the preamble by itself causes any errors,
    		// because the messages we've printed out so far aren't helpful
    		// to users debugging preamble mistakes. See issue 8442.
    		preambleErrors := p.gccErrors([]byte(builtinProlog + f.Preamble))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    	fmt.Printf("%q\n", bytes.Split([]byte("a,b,c"), []byte(",")))
    	fmt.Printf("%q\n", bytes.Split([]byte("a man a plan a canal panama"), []byte("a ")))
    	fmt.Printf("%q\n", bytes.Split([]byte(" xyz "), []byte("")))
    	fmt.Printf("%q\n", bytes.Split([]byte(""), []byte("Bernardo O'Higgins")))
    	// Output:
    	// ["a" "b" "c"]
    	// ["" "man " "plan " "canal panama"]
    	// [" " "x" "y" "z" " "]
    	// [""]
    }
    
    func ExampleSplitN() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. api/go1.20.txt

    pkg bytes, func Clone([]uint8) []uint8 #45038
    pkg bytes, func CutPrefix([]uint8, []uint8) ([]uint8, bool) #42537
    pkg bytes, func CutSuffix([]uint8, []uint8) ([]uint8, bool) #42537
    pkg context, func Cause(Context) error #51365
    pkg context, func WithCancelCause(Context) (Context, CancelCauseFunc) #51365
    pkg context, type CancelCauseFunc func(error) #51365
    pkg crypto/ecdh, func P256() Curve #52221
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  5. src/builtin/builtin.go

    // termination sequence is called panicking and can be controlled by the
    // built-in function recover.
    //
    // Starting in Go 1.21, calling panic with a nil interface value or an
    // untyped nil causes a run-time error (a different panic).
    // The GODEBUG setting panicnil=1 disables the run-time error.
    func panic(v any)
    
    // The recover built-in function allows a program to manage behavior of a
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. doc/go_spec.html

    to by <code>x</code>.
    If <code>x</code> is <code>nil</code>, an attempt to evaluate <code>*x</code>
    will cause a <a href="#Run_time_panics">run-time panic</a>.
    </p>
    
    <pre>
    &amp;x
    &amp;a[f(2)]
    &amp;Point{2, 3}
    *p
    *pf(x)
    
    var x *int = nil
    *x   // causes a run-time panic
    &amp;*x  // causes a run-time panic
    </pre>
    
    
    <h3 id="Receive_operator">Receive operator</h3>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. src/archive/tar/writer.go

    	// the format is explicitly chosen.
    	// This ensures nominal usage of WriteHeader (without specifying the format)
    	// does not always result in the PAX format being chosen, which
    	// causes a 1KiB increase to every header.
    	if tw.hdr.Format == FormatUnknown {
    		tw.hdr.ModTime = tw.hdr.ModTime.Round(time.Second)
    		tw.hdr.AccessTime = time.Time{}
    		tw.hdr.ChangeTime = time.Time{}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  8. doc/go_mem.html

    and <i>w'</i> happens before <i>r</i>.
    That is, each read must observe a value written by a preceding or concurrent write.
    </p>
    
    <p>
    Additionally, observation of acausal and “out of thin air” writes is disallowed.
    </p>
    
    <p>
    Reads of memory locations larger than a single machine word
    are encouraged but not required to meet the same semantics
    as word-sized memory locations,
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  9. LICENSE

    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jun 01 22:40:04 GMT 2016
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/endtoend_test.go

    		}
    		if len(output) > 0 && output[0] == want {
    			output = output[1:]
    		} else {
    			t.Errorf("missing output: %q", want)
    		}
    	}
    	for len(output) > 0 {
    		if output[0] == "" {
    			// spurious blank caused by Split on "\n"
    			output = output[1:]
    			continue
    		}
    		t.Errorf("unexpected output: %q", output[0])
    		output = output[1:]
    	}
    
    	// Checked printing.
    	// Now check machine code layout.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top