function

package
v0.0.0-...-62820d0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a int, b int) (add int, minus int)

函数可以返回多个数,但是必须指定返回值名称

func AddParm

func AddParm(a, b int) int

func Debug

func Debug()

func FuncAnony

func FuncAnony()

func FuncAsParm

func FuncAsParm(y int, f func(int, int) int)

函数作为参数

func MakeAddSuffix

func MakeAddSuffix(suffix string) func(string) string

闭包作为返回,返回一个函数

func Mutiply

func Mutiply(a int, b *int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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