Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Init (0.16 sec)

  1. doc/go_mem.html

    </p>
    
    <h2 id="synchronization">Synchronization</h2>
    
    <h3 id="init">Initialization</h3>
    
    <p>
    Program initialization runs in a single goroutine,
    but that goroutine may create other goroutines,
    which run concurrently.
    </p>
    
    <p class="rule">
    If a package <code>p</code> imports package <code>q</code>, the completion of
    <code>q</code>'s <code>init</code> functions happens before the start of any of <code>p</code>'s.
    </p>
    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)
  2. doc/go1.17_spec.html

    Variables may also be initialized using functions named <code>init</code>
    declared in the package block, with no arguments and no result parameters.
    </p>
    
    <pre>
    func init() { … }
    </pre>
    
    <p>
    Multiple such functions may be defined per package, even within a single
    source file. In the package block, the <code>init</code> identifier can
    be used only to declare <code>init</code> functions, yet the identifier
    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

    Variables may also be initialized using functions named <code>init</code>
    declared in the package block, with no arguments and no result parameters.
    </p>
    
    <pre>
    func init() { … }
    </pre>
    
    <p>
    Multiple such functions may be defined per package, even within a single
    source file. In the package block, the <code>init</code> identifier can
    be used only to declare <code>init</code> functions, yet the identifier
    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)
Back to top