Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blacktop/go-macho
Package macho implements access to and creation of Mach-O object files.
https://github.com/blacktop/go-macho
apple golang ios macho macho-parser macos
Last synced: 2 days ago
JSON representation
Package macho implements access to and creation of Mach-O object files.
- Host: GitHub
- URL: https://github.com/blacktop/go-macho
- Owner: blacktop
- License: mit
- Created: 2020-03-16T22:16:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T16:28:21.000Z (8 months ago)
- Last Synced: 2024-05-29T07:37:36.694Z (8 months ago)
- Topics: apple, golang, ios, macho, macho-parser, macos
- Language: Go
- Size: 1.1 MB
- Stars: 178
- Watchers: 7
- Forks: 28
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# go-macho
[![Go](https://github.com/blacktop/go-macho/workflows/Go/badge.svg?branch=master)](https://github.com/blacktop/go-macho/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/blacktop/go-macho.svg)](https://pkg.go.dev/github.com/blacktop/go-macho) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
> Package macho implements access to and creation of Mach-O object files.
---
## Why 🤔
This package goes beyond the Go's `debug/macho` to:
- Cover ALL load commands and architectures
- Provide nice summary string output
- Allow for creating custom MachO files
- Parse Objective-C runtime information
- Parse Swift runtime information
- Read/Write code signature information
- Parse fixup chain information## Install
```bash
$ go get github.com/blacktop/go-macho
```## Getting Started
```go
package mainimport "github.com/blacktop/go-macho"
func main() {
m, err := macho.Open("/path/to/macho")
if err != nil {
panic(err)
}
defer m.Close()fmt.Println(m.FileTOC.String())
}
```## License
MIT Copyright (c) 2020-2024 **blacktop**