https://github.com/badu/unbundle
unbundle tool - packages into files
https://github.com/badu/unbundle
go golang tool
Last synced: 15 days ago
JSON representation
unbundle tool - packages into files
- Host: GitHub
- URL: https://github.com/badu/unbundle
- Owner: badu
- License: gpl-3.0
- Created: 2019-10-24T06:14:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-28T05:43:04.000Z (over 6 years ago)
- Last Synced: 2025-10-09T08:05:08.863Z (9 months ago)
- Topics: go, golang, tool
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unbundle
A tool for unbundling packages or bundled source files.
Contains some packages from `internal` of [tools](https://github.com/golang/tools.git)
Note : previously unbundled files get deleted on re-run.
Usage: unbundle [options]
Where the options are :
-dst path
set destination unbundled path (e.g. `D:\inspect\rebundle`) - default `unbundled`
-newpkg name
set destination package name and folder inside the destination `path` (e.g. `http`)
-privfunc string
private functions file (no extension) (default "private_fns")
-pubfunc string
public functions file (no extension) (default "public_fns")
-types string
types definition file (no extension) (default "defs")
# Examples
For unbundling a single file:
```
unbundle --newpkg="http" --dst="unbundled" --privfunc="_private" --pubfunc="_public" --types="_types" /usr/local/go/src/net/http/server.go
```
For unbundling a package:
```
unbundle --types="_types" --newpkg="http" --dst="unbundled" --privfunc="_prv" --pubfunc="_pub" "net/http"
```
# Why?
Splitting the atoms.