积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(15)Go(15)

语言

全部英语(8)中文(简体)(7)

格式

全部PDF文档 PDF(11)其他文档 其他(4)
 
本次搜索耗时 0.190 秒,为您找到相关结果约 15 个.
  • 全部
  • 后端开发
  • Go
  • 全部
  • 英语
  • 中文(简体)
  • 全部
  • PDF文档 PDF
  • 其他文档 其他
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 The Way To Go - 2012

    an anonymous function (also known under the names of a lambda function, a function literal, or a closure), for example: func(x, y int) int { return x + y } Such a function cannot stand on its own (the surrounding function. A closure is a function that captures some external state—for example, the state of the function in which it is created. Another way to formulate this is: a closure inherits the scope declared. That state (those variables) is then shared between the surrounding function and the closure, and the variables survive as long as they are accessible; see the following examples in §6.9. Closures
    0 码力 | 629 页 | 4.85 MB | 1 年前
    3
  • pdf文档 The Expressiveness of Go

    }(conn) } return <-ch } Monday, October 18, 2010 Principles redux 42 Concurrency and closure examples: Simple - stacks just work; goroutines too cheap to meter Orthogonal - concurrency orthogonal orthogonal to rest of language - orthogonality of functions make closures easy Succinct - go f() - closure syntax clear Safe - no stack overflows - garbage collection avoids many concurrency problems
    0 码力 | 49 页 | 839.26 KB | 1 年前
    3
  • pdf文档 Go Programming

    combination of communication and synchronization is a powerful tool. {Closure, channel} pairs are a nice way to pass work around. The closure says what to do; the channel lets the answer flow directly back
    0 码力 | 60 页 | 1.04 MB | 1 年前
    3
  • pdf文档 Golang 微服务在腾讯游戏用户运营领域的探索及实践

    Performance / API friendly GopherLua 交互开销 线程 安全 VM线程开 销 学习 成本 嵌入式Lua虚拟机 Gopherlua VM Pool Closure 隔离 即写即用 One VM One Service, Write Once Run Anywhere 微服务划分 Intervene 干预 Measure 评估 User 用户
    0 码力 | 34 页 | 1.22 MB | 1 年前
    3
  • pdf文档 GoFrame框架介绍及设计

    模块化设计-复用原则 REP 发布等同原则 (Release/Reuse Equivalency Principle) 软件复用的最小粒度应等同于其发布的最小粒度。 CCP 共同闭包原则 (Common Closure Principle) 为了相同目的而同时修改的类,应该放在同一个模块中。 对大部分应用程序而言,可维护性的重要性远远大于可复 用性,由同一个原因引起的代码修改,最好在同一个模块 中,如
    0 码力 | 37 页 | 8.84 MB | 1 年前
    3
  • pdf文档 Writing Web Apps in Go

    check(err) m, _, err := image.Decode(f) check(err) v := func(n string) int { // helper closure i, _ := strconv.Atoi(r.FormValue(n)) return i } m = moustache(m, v("x"),
    0 码力 | 66 页 | 712.40 KB | 1 年前
    3
  • pdf文档 Golang Manual By AstaXie-20120522

    is: regexp: concatenation { '|' concatenation } concatenation: { closure } closure: term [ '*' | '+' | '?' ] term: '^' '$' '.' character exit cleanly without disturbing the others. There's no need to do anything else in the deferred closure; calling recover handles the condition completely. Because recover always returns nil unless called each iteration of the loop uses the same instance of the variable v, so each closure shares that single variable. When the closure runs, it prints the value of v at the time fmt.Println is executed, but v
    0 码力 | 6205 页 | 12.83 MB | 1 年前
    3
  • pdf文档 Go 入门指南(The way to Go)

    return a + b } } 输出: Call Add2 for 3 gives: 5 The result is: 5 下例为一个略微不同的实现(function_closure.go): package main import "fmt" func main() { var f = Adder() fmt.Print(f(1), " - ") 或者等待两个协程完成,每一个都会对切片s的一部分进行排序,片段如下: done := make(chan bool) // doSort is a lambda function, so a closure which knows the channel done: doSort := func(s []int){ sort(s) done <- true } i := pivot(s)
    0 码力 | 380 页 | 2.97 MB | 1 年前
    3
  • epub文档 Golang 101(Go语言101 中文版) v1.21.a

    内置了映射(map)和切片(slice)类型。 支持多态(polymorphism)。 使用接口(interface)来实现裝盒(value boxing)和反射(reflection)。 支持指针。 支持函数闭包(closure)。 支持方法。 支持延迟函数调用(defer)。 支持类型内嵌(type embedding)。 支持类型推断(type deduction or type inference)。 内存安全。 23 | }() // 不需传递实参。 24 | } 注意,上例中的最后一个匿名函数处于变量x和y的作用域内,所以在它的函 数体内可以直接使用这两个变量。 这样的函数称为闭包(closure)。事实上, Go中的所有的自定义函数(包括声明的函数和匿名函数)都可以被视为闭 包。 这就是为什么Go中的函数使用起来和动态语言中的函数一样灵活。 在后面的文章中,我们将了解到一个匿名函数可以被赋值给某个函数类型的 以后多次调用此匿名函数。 1| package main 2| 3| import "fmt" 4| 5| func main() { 6| // 此函数返回一个函数类型的结果,亦即闭包(closure)。 7| isMultipleOfX := func (x int) func(int) bool { 8| return func(n int) bool { 9|
    0 码力 | 821 页 | 956.82 KB | 1 年前
    3
  • mobi文档 Golang 101(Go语言101 中文版) v1.21.a

    内置了映射(map)和切片(slice)类型。 支持多态(polymorphism)。 使用接口(interface)来实现裝盒(value boxing)和反射(reflection)。 支持指针。 支持函数闭包(closure)。 支持方法。 支持延迟函数调用(defer)。 支持类型内嵌(type embedding)。 支持类型推断(type deduction or type inference)。 内存安全。 x*x + y*y = 25 }() // 不需传递实参。 } 注意,上例中的最后一个匿名函数处于变量x和y的作用域内,所以在它的函数 体内可以直接使用这两个变量。 这样的函数称为闭包(closure)。事实上,Go 中的所有的自定义函数(包括声明的函数和匿名函数)都可以被视为闭包。 这 就是为什么Go中的函数使用起来和动态语言中的函数一样灵活。 在后面的文章中,我们将了解到一个匿名函数可以被赋值给某个函数类型的 函数类型的变量,从而可以在 以后多次调用此匿名函数。 package main import "fmt" func main() { // 此函数返回一个函数类型的结果,亦即闭包(closure)。 isMultipleOfX := func (x int) func(int) bool { return func(n int) bool { return
    0 码力 | 608 页 | 1.08 MB | 1 年前
    3
共 15 条
  • 1
  • 2
前往
页
相关搜索词
TheWayToGo2012ExpressivenessofProgrammingGolang服务腾讯游戏用户运营领域探索实践GoFrame框架介绍设计WritingWebAppsinManualByAstaXie20120522入门指南wayto101语言中文文版中文版v121
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩