Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for things (0.14 sec)

  1. src/bytes/buffer.go

    // String returns the contents of the unread portion of the buffer
    // as a string. If the [Buffer] is a nil pointer, it returns "<nil>".
    //
    // To build strings more efficiently, see the strings.Builder type.
    func (b *Buffer) String() string {
    	if b == nil {
    		// Special case, useful in debugging.
    		return "<nil>"
    	}
    	return string(b.buf[b.off:])
    }
    
    // empty reports whether the unread portion of the buffer is empty.
    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/asm/internal/arch/arch.go

    	Register map[string]int16
    	// Table of register prefix names. These are things like R for R(0) and SPR for SPR(268).
    	RegisterPrefix map[string]bool
    	// RegisterNumber converts R(10) into arm.REG_R10.
    	RegisterNumber func(string, int16) (int16, bool)
    	// Instruction is a jump.
    	IsJump func(word string) bool
    }
    
    // nilRegisterNumber is the register number function for architectures
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/ast.go

    	n, ok := x.(*ast.FuncDecl)
    	if !ok {
    		return
    	}
    
    	if n.Doc == nil {
    		return
    	}
    	for _, c := range n.Doc.List {
    		if !strings.HasPrefix(c.Text, "//export ") {
    			continue
    		}
    
    		name := strings.TrimSpace(c.Text[9:])
    		if name == "" {
    			error_(c.Pos(), "export missing name")
    		}
    
    		if name != n.Name.Name {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    		if got != v.want {
    			t.Errorf("formatPAXTime(%ds, %dns): got %q, want %q",
    				v.sec, v.nsec, got, v.want)
    		}
    	}
    }
    
    func TestParsePAXRecord(t *testing.T) {
    	medName := strings.Repeat("CD", 50)
    	longName := strings.Repeat("AB", 100)
    
    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/operand_test.go

    				name, _, ok := parser.funcAddress()
    
    				isFuncSym := strings.HasSuffix(test.input, "(SB)") &&
    					// Ignore static symbols.
    					!strings.Contains(test.input, "<>")
    
    				wantName := ""
    				if isFuncSym {
    					// Strip $|* and (SB) and +Int.
    					wantName = test.output[:len(test.output)-4]
    					if strings.HasPrefix(wantName, "$") || strings.HasPrefix(wantName, "*") {
    						wantName = wantName[1:]
    					}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg runtime, func StopTrace()
    pkg runtime, type MemStats struct, GCCPUFraction float64
    pkg runtime/trace, func Start(io.Writer) error
    pkg runtime/trace, func Stop()
    pkg strings, func Compare(string, string) int
    pkg strings, func LastIndexByte(string, uint8) int
    pkg strings, method (*Reader) Size() int64
    pkg syscall (darwin-386), type SysProcAttr struct, Ctty int
    pkg syscall (darwin-386), type SysProcAttr struct, Foreground bool
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/doc.go

    duplicate symbols and the linker will fail. To avoid this, definitions
    must be placed in preambles in other files, or in C source files.
    
    # Passing pointers
    
    Go is a garbage collected language, and the garbage collector needs to
    know the location of every pointer to Go memory. Because of this,
    there are restrictions on passing pointers between Go and C.
    
    In this section the term Go pointer means a pointer to memory
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  8. src/bytes/bytes.go

    }
    
    // contains reports whether c is inside the set.
    func (as *asciiSet) contains(c byte) bool {
    	return (as[c/32] & (1 << (c % 32))) != 0
    }
    
    // containsRune is a simplified version of strings.ContainsRune
    // to avoid importing the strings package.
    // We avoid bytes.ContainsRune to avoid allocating a temporary copy of s.
    func containsRune(s string, r rune) bool {
    	for _, c := range s {
    		if c == r {
    			return true
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    			switch j {
    			case 0:
    				tr = NewReader(&reader{strings.NewReader(v.input)})
    				s1, s2 = "io.Reader", "auto"
    			case 1:
    				tr = NewReader(&reader{strings.NewReader(v.input)})
    				s1, s2 = "io.Reader", "manual"
    			case 2:
    				tr = NewReader(&readSeeker{strings.NewReader(v.input)})
    				s1, s2 = "io.ReadSeeker", "auto"
    			case 3:
    				tr = NewReader(&readSeeker{strings.NewReader(v.input)})
    				s1, s2 = "io.ReadSeeker", "manual"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  10. api/go1.18.txt

    pkg runtime/debug, type BuildSetting struct
    pkg runtime/debug, type BuildSetting struct, Key string
    pkg runtime/debug, type BuildSetting struct, Value string
    pkg strings, func Clone(string) string
    pkg strings, func Cut(string, string) (string, string, bool)
    pkg strings, func Title //deprecated
    pkg sync, method (*Mutex) TryLock() bool
    pkg sync, method (*RWMutex) TryLock() bool
    pkg sync, method (*RWMutex) TryRLock() bool
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
Back to top