Giter Site home page Giter Site logo

go-binfmt's Introduction

Install go-binfmt.

$ go get github.com/str1ngs/go-binfmt

To use go-binfmt first register it with binfmt.

$ sudo $GOPATH/bin/go-binfmt -register

To run a go file give it executable permissions, and then run it.

$ chmod +x main.go
$ ./main.go

go-binfmt's People

Contributors

mrosset avatar

Stargazers

Darren Hoo avatar David Bariod avatar  avatar Harald Lapp avatar Morton Fox avatar Sonia Hamilton avatar Trevor Joynson avatar  avatar Sebastien Binet avatar Mohamed Ragab avatar  avatar Steve Phillips avatar Sig avatar Michael Fellinger avatar

Watchers

 avatar James Cloos avatar  avatar  avatar  avatar

Forkers

imbitsyl

go-binfmt's Issues

Won't build

$ go get github.com/str1ngs/go-binfmt
# github.com/str1ngs/go-binfmt
src/github.com/str1ngs/go-binfmt/main.go:65: undefined: util.CheckFatal
src/github.com/str1ngs/go-binfmt/main.go:75: undefined: util.CheckFatal
src/github.com/str1ngs/go-binfmt/main.go:84: undefined: util.CheckFatal
src/github.com/str1ngs/go-binfmt/main.go:87: undefined: util.CheckFatal
src/github.com/str1ngs/go-binfmt/main.go:100: undefined: util.CheckFatal
src/github.com/str1ngs/go-binfmt/main.go:103: undefined: util.CheckFatal

util no longer exposes checkFatal.

default archlinux can not run

kernel needs binfmt support and mounted to /proc/sys/fs/binfmt_misc

Could you describe it on your reame about what are options should turn on kernel and how.

can not support input os.Args() parameters

$./t.go a b c 
[/tmp/go-build466606284/_/t/_obj/a.out]  
# should be [/tmp/go-build466606284/_/t/_obj/a.out]  b c
# or better [original_path/t.go]  b c

$cat t.go                                 
package main

import "os"
import "fmt"

func main() {
    fmt.Println(os.Args)
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.