dtanabe / mixedlib

A fairly do-nothing library, but written in several languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mixedlib

mixedlib is a library that doesn't do much of anything other than demonstrate how a library written in mulitple languages might look.

Examples:

from mixedlib import add
print(add(1, 1))
import github.com/dtanabe/mixedlib

func main() {
	print(mixedlib.add(1, 1))
}

About

The standard packaging files (setup.py, go.mod, package.json, pom.xml, etc.) are all located at the root of the file tree so that tools idiosyncractic to each language also work at the root, and so that most IDEs work sensibly with all languages when importing the root. It also ensures that top-level directories, such as test are accessible from all projects without too many issues; many tools take issue with trying to reach outside of a root directory.

> git clone github.com/dtanabe/mixedlib
> cd mixedlib

# run Python tests
>

# run Go tests
> go test

# run JavaScript tests
> npm test

# run Java tests
> mvn test

Python

Running t

About

A fairly do-nothing library, but written in several languages.

License:The Unlicense


Languages

Language:Python 51.3%Language:Go 43.5%Language:Makefile 5.3%