IrisJavaDiary

Monday, March 18, 2019

[Go]Notes




Defer

A defer statement defers the execution of a function until the surrounding function returns.
The deferred call's arguments are evaluated immediately, but the function call is not executed until the surrounding function returns.


Closures
https://www.calhoun.io/5-useful-ways-to-use-closures-in-go/
Posted by Iris's Blog at 5:56 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Iris's Blog
View my complete profile

Blog Archive

  • ►  2022 (139)
    • ►  August (12)
    • ►  July (41)
    • ►  June (67)
    • ►  May (19)
  • ►  2021 (3)
    • ►  August (1)
    • ►  March (2)
  • ▼  2019 (75)
    • ▼  March (5)
      • 65. Valid Number
      • [Go]Notes
      • [Go]Exercise: Loops and Functions
      • [Go]Methods are functions
      • [Go]Fibonacci closure
    • ►  February (8)
    • ►  January (62)
  • ►  2018 (194)
    • ►  December (81)
    • ►  November (35)
    • ►  October (36)
    • ►  September (15)
    • ►  August (12)
    • ►  July (10)
    • ►  June (5)
  • ►  2017 (347)
    • ►  December (1)
    • ►  November (4)
    • ►  October (12)
    • ►  September (37)
    • ►  August (39)
    • ►  July (31)
    • ►  June (43)
    • ►  May (15)
    • ►  April (78)
    • ►  March (83)
    • ►  February (4)
  • ►  2016 (1)
    • ►  August (1)
Simple theme. Powered by Blogger.