study

command
v0.0.0-...-ab226bc Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

golang语法学习笔记

go func 函数详解

func (p myType) funcName(a,b,int ,c string)(r,s int){
return
}

相关解释:

func 关键字,定义函数的关键字
(p myType) 函数拥有者,go可以为特定类型定义函数,即为类型对象定义方法
funcName 函数名
a,b,int ,c string) 入参
(r,s int)返回值
{}函数体

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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