Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for copy (0.12 sec)

  1. doc/go1.17_spec.html

    <code>len(src)</code> and <code>len(dst)</code>.
    As a special case, <code>copy</code> also accepts a destination argument assignable
    to type <code>[]byte</code> with a source argument of a string type.
    This form copies the bytes from the string into the byte slice.
    </p>
    
    <pre class="grammar">
    copy(dst, src []T) int
    copy(dst []byte, src string) int
    </pre>
    
    <p>
    Examples:
    </p>
    
    <pre>
    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)
Back to top