go ddd2 源码

  • 2022-07-15
  • 浏览 (844)

golang ddd2 代码

文件路径:/test/ddd2.dir/ddd2.go

// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// This file is compiled and then imported by ddd3.go.

package ddd

func Sum(args ...int) int {
	s := 0
	for _, v := range args {
		s += v
	}
	return s
}

相关信息

go 源码目录

相关文章

go ddd3 源码

0  赞