Created
July 2, 2019 14:23
-
-
Save sugamasao/a52da8ea201ac9711448bae220cd247d to your computer and use it in GitHub Desktop.
perlを実行するやーつのruby版
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
) | |
const script = ` | |
#!ruby | |
puts "Hello, Ruby! VERSION = #{RUBY_VERSION}" | |
__END__ | |
` | |
func init() { | |
ioutil.Discard.Write([]byte(script)) | |
} | |
func main() { | |
fmt.Println("This is Go world!!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment