closure

package
v0.0.0-...-f86eec2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adder

func Adder(x int) func(int) int

返回匿名函数的函数 1) x是自由变量 2) 匿名函数和x自由变量共同组成闭包

func T_00

func T_00()

*

  • 概念说明
  • @see
  • @param

func T_000

func T_000()

*

func T_001

func T_001()

func T_002

func T_002()

func T_003

func T_003()

func T_01

func T_01()

func T_02

func T_02()

func T_03

func T_03()

func T_04

func T_04()

func T_defer

func T_defer()

一个defer引用闭包的示例,等到defer时再来处理

Types

type CalcFunc

type CalcFunc func(int) int

返回2个函数类型的返回值

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL