Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for raise (0.27 sec)

  1. doc/go1.17_spec.html

    </li>
    </ul>
    
    <p>
    The <code>protect</code> function in the example below invokes
    the function argument <code>g</code> and protects callers from
    run-time panics raised by <code>g</code>.
    </p>
    
    <pre>
    func protect(g func()) {
    	defer func() {
    		log.Println("done")  // Println executes normally even if there is a panic
    		if x := recover(); x != nil {
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    causes a <a href="#Run_time_panics">run-time panic</a>.
    </p>
    
    <p>
    The <code>protect</code> function in the example below invokes
    the function argument <code>g</code> and protects callers from
    run-time panics raised by <code>g</code>.
    </p>
    
    <pre>
    func protect(g func()) {
    	defer func() {
    		log.Println("done")  // Println executes normally even if there is a panic
    		if x := recover(); x != nil {
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    		if r.Name.Kind != "type" {
    			error_(r.Pos(), "expression C.%s used as type", fixGo(r.Name.Go))
    		} else if r.Name.Type == nil {
    			// Use of C.enum_x, C.struct_x or C.union_x without C definition.
    			// GCC won't raise an error when using pointers to such unknown types.
    			error_(r.Pos(), "type C.%s: undefined C type '%s'", fixGo(r.Name.Go), r.Name.C)
    		}
    	default:
    		if r.Name.Kind == "func" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. CONTRIBUTING.md

    list](https://groups.google.com/forum/#!forum/golang-nuts) or [other forums](https://golang.org/help/) first. If
    the behavior you are seeing is confirmed as a bug or issue, it can easily be re-raised in the issue tracker.
    
    ## Filing issues
    
    Sensitive security-related issues should be reported to [******@****.***](mailto:******@****.***).
    See the [security policy](https://golang.org/security) for details.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 29 22:00:27 GMT 2023
    - 1.3K bytes
    - Viewed (0)
Back to top