Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pos (0.23 sec)

  1. doc/go_spec.html

    assigned the return values of <code>g</code> that remain after
    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>
    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)
Back to top