Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NthPreviousEntry (0.15 sec)

  1. src/cmd/vendor/golang.org/x/term/terminal.go

    	s.entries[s.head] = a
    	if s.size < s.max {
    		s.size++
    	}
    }
    
    // NthPreviousEntry returns the value passed to the nth previous call to Add.
    // If n is zero then the immediately prior value is returned, if one, then the
    // next most recent, and so on. If such an element doesn't exist then ok is
    // false.
    func (s *stRingBuffer) NthPreviousEntry(n int) (value string, ok bool) {
    	if n < 0 || n >= s.size {
    		return "", false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
Back to top