Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Primitives (0.21 sec)

  1. doc/go_mem.html

    <p>
    Programs that modify data being simultaneously accessed by multiple goroutines
    must serialize such access.
    </p>
    
    <p>
    To serialize access, protect the data with channel operations or other synchronization primitives
    such as those in the <a href="/pkg/sync/"><code>sync</code></a>
    and <a href="/pkg/sync/atomic/"><code>sync/atomic</code></a> packages.
    </p>
    
    <p>
    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)
  2. src/bufio/bufio.go

    	}
    
    	// Handle last byte, if any.
    	if i := len(line) - 1; i >= 0 {
    		b.lastByte = int(line[i])
    		b.lastRuneSize = -1
    	}
    
    	return
    }
    
    // ReadLine is a low-level line-reading primitive. Most callers should use
    // [Reader.ReadBytes]('\n') or [Reader.ReadString]('\n') instead or use a [Scanner].
    //
    // ReadLine tries to return a single line, not including the end-of-line bytes.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
Back to top