Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cardinalby/xgo-as-library

Docker image for cross-platform Go build
https://github.com/cardinalby/xgo-as-library

Last synced: about 5 hours ago
JSON representation

Docker image for cross-platform Go build

Awesome Lists containing this project

README

        

# xgo-as-library

It's a copy of [crazy-max/xgo](https://github.com/crazy-max/xgo) go utility rewritten as a library
so that you can include it in your own go program.

## Usage

```go
import "github.com/cardinalby/xgo-as-library"

...

logger := log.New(os.Stdout, "", log.LstdFlags)
args := xgolib.Args{
Repository: '.',
SrcPackage: 'cmd/myapp',
Targets: []string{"linux/amd64", "windows/amd64"},
}
if err := xgolib.StartBuild(args, logger); err != nil {
log.Fatal(err)
}
```