Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 506 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 506 Bytes

program structure

type decalration

package and files

package initialization

Package initialization begins by initializing package-level variables in the order in which they are declared,excepted that dependencies are resolved first.

If the package has multiple .go files,they are initialized in the order in which the files are given to the compilier

scope

local level,package level ,file level scope vs lifetime

  • scope is compile time propert
  • lifetime is runtime property