closure_package

package
v0.0.0-...-a7c7adb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTwiceFunClosure

func NewTwiceFunClosure(x int) func() int

Types

type FunTwiceClosure

type FunTwiceClosure struct {
	F uintptr // 表示闭包函数的函数指令的地址
	X int     // 闭包捕获的外部变量
}

手动构造闭包

Jump to

Keyboard shortcuts

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