Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cardinalby/xgo-as-library
- Owner: cardinalby
- Created: 2024-01-21T18:50:36.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-11T23:15:46.000Z (8 months ago)
- Last Synced: 2024-06-21T17:02:36.668Z (5 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
}
```