closure_package

package
v0.0.0-...-a4b01d9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 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