mirror of https://github.com/go-python/gopy.git
27 lines
489 B
Go
27 lines
489 B
Go
// Copyright 2015 The go-python Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// simple is a simple package.
|
|
package simple
|
|
|
|
// Func is a simple func
|
|
func Func() {}
|
|
|
|
// Add is a (less) simple func
|
|
func Add(i, j int) int {
|
|
return i + j
|
|
}
|
|
|
|
func Bool(b bool) bool {
|
|
return b
|
|
}
|
|
|
|
func Comp64Add(i, j complex64) complex64 {
|
|
return i + j
|
|
}
|
|
|
|
func Comp128Add(i, j complex128) complex128 {
|
|
return i + j
|
|
}
|