Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for joined (0.21 sec)

  1. src/cmd/cgo/doc.go

    forth). A Go function called by C code may take C pointers as arguments,
    and it may store non-pointer data, C pointers, or Go pointers to pinned
    memory through those pointers. It may not store a Go pointer to unpinned
    memory in memory pointed to by a C pointer (which again, implies that it
    may not store a string, slice, channel, and so forth). A Go function
    called by C code may take a Go pointer but it must preserve the property
    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)
  2. doc/go1.17_spec.html

    assignment of regular parameters.
    </p>
    
    <pre>
    func Split(s string, pos int) (string, string) {
    	return s[0:pos], s[pos:]
    }
    
    func Join(s, t string) string {
    	return s + t
    }
    
    if Join(Split(value, len(value)/2)) != value {
    	log.Panic("test fails")
    }
    </pre>
    
    <p>
    A method call <code>x.m()</code> is valid if the <a href="#Method_sets">method set</a>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/go_spec.html

    assignment of regular parameters.
    </p>
    
    <pre>
    func Split(s string, pos int) (string, string) {
    	return s[0:pos], s[pos:]
    }
    
    func Join(s, t string) string {
    	return s + t
    }
    
    if Join(Split(value, len(value)/2)) != value {
    	log.Panic("test fails")
    }
    </pre>
    
    <p>
    A method call <code>x.m()</code> is valid if the <a href="#Method_sets">method set</a>
    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)
  4. PATENTS

    patent license to make, have made, use, offer to sell, sell, import,
    transfer and otherwise run, modify and propagate the contents of this
    implementation of Go, where such license applies only to those patent
    claims, both currently owned or controlled by Google and acquired in
    the future, licensable by Google that are necessarily infringed by this
    implementation of Go.  This grant does not include claims that would be
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Dec 06 21:31:59 GMT 2010
    - 1.3K bytes
    - Viewed (0)
  5. misc/ios/detect.go

    	if len(lines[len(lines)-1]) == 0 {
    		lines = lines[:len(lines)-1]
    	}
    	return lines
    }
    
    func output(cmd *exec.Cmd) []byte {
    	out, err := cmd.Output()
    	if err != nil {
    		fmt.Println(strings.Join(cmd.Args, "\n"))
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	return out
    }
    
    func check(err error) {
    	if err != nil {
    		fail(err.Error())
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    	a := make([][]byte, len(spans))
    	for i, span := range spans {
    		a[i] = s[span.start:span.end:span.end]
    	}
    
    	return a
    }
    
    // Join concatenates the elements of s to create a new byte slice. The separator
    // sep is placed between elements in the resulting slice.
    func Join(s [][]byte, sep []byte) []byte {
    	if len(s) == 0 {
    		return []byte{}
    	}
    	if len(s) == 1 {
    		// Just return a copy.
    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)
  7. src/archive/tar/writer.go

    			spb = append(spb, zeroBlock[:pad]...)
    			hdr.Size += int64(len(spb)) // Accounts for encoded sparse map
    
    			// Add and modify appropriate PAX records.
    			dir, file := path.Split(realName)
    			hdr.Name = path.Join(dir, "GNUSparseFile.0", file)
    			paxHdrs[paxGNUSparseMajor] = "1"
    			paxHdrs[paxGNUSparseMinor] = "0"
    			paxHdrs[paxGNUSparseName] = realName
    			paxHdrs[paxGNUSparseRealSize] = strconv.FormatInt(realSize, 10)
    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. src/cmd/asm/internal/lex/input.go

    	}
    	in.expectNewline("#include")
    	// Push tokenizer for file onto stack.
    	fd, err := os.Open(name)
    	if err != nil {
    		for _, dir := range in.includes {
    			fd, err = os.Open(filepath.Join(dir, name))
    			if err == nil {
    				break
    			}
    		}
    		if err != nil {
    			in.Error("#include:", err)
    		}
    	}
    	in.Push(NewTokenizer(name, fd, fd))
    }
    
    // #line processing.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. api/go1.1.txt

    pkg syscall (linux-386), const IPV6_HOPLIMIT = 52
    pkg syscall (linux-386), const IPV6_HOPOPTS = 54
    pkg syscall (linux-386), const IPV6_IPSEC_POLICY = 34
    pkg syscall (linux-386), const IPV6_JOIN_ANYCAST = 27
    pkg syscall (linux-386), const IPV6_JOIN_GROUP = 20
    pkg syscall (linux-386), const IPV6_LEAVE_ANYCAST = 28
    pkg syscall (linux-386), const IPV6_LEAVE_GROUP = 21
    pkg syscall (linux-386), const IPV6_MTU = 24
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  10. doc/go_mem.html

    ahead of the loop in this program:
    </p>
    
    <pre>
    n := 0
    for e := list; e != nil; e = e.next {
    	n++
    }
    i := *p
    *q = 1
    </pre>
    
    <p>
    If <code>list</code> pointed to a cyclic list,
    then the original program would never access <code>*p</code> or <code>*q</code>,
    but the rewritten program would.
    (Moving `*p` ahead would be safe if the compiler can prove `*p` will not panic;
    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)
Back to top