Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8510803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:48:19+00:00 2026-06-11T03:48:19+00:00

I am trying to write a script in Go but I get this error:

  • 0

I am trying to write a script in Go but I get this error:

bad interpreter: Permission denied

My super simple script is as follow:

#!/usr/local/Cellar/go/1.0.2/bin  
fmt.Println("Hello World")  

I don´t know if this is possible but I would really like to write scripts in Go since I like the language a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:48:21+00:00Added an answer on June 11, 2026 at 3:48 am

    Go isn’t a scripting language. Like in C you have to compile your source code to make an executable.

    From the “Getting Started” :

    Create a file named hello.go and put the following program in it:

    package main
    
    import "fmt"
    
    func main() {
        fmt.Printf("hello, world\n")
    }
    

    Then run it with the go tool:

    $ go run hello.go
    hello, world
    

    In the spirit of Python, there are attempts to make Go scripts kinda possible. Here’s for example what you can do with gorun :

    #!/usr/bin/gorun
    
    package main
    
    func main() {
        println("Hello world!")
    }
    

    But that’s not really the logic of Go and that’s not nearly as simple as what you typed in your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write my very first python script. This was working but
I'm trying to write a simple script for C to get values from a
I'm trying to write a DML script that updates a column but I wanted
I'm trying to write (what I thought would be) a simple bash script that
I'm trying to write a simple php script to take in data from stdin
I'm trying to write a bash script which will behave as a basic interpreter,
I trying to define a function in sybase. I write this script: CREATE FUNCTION
I am trying to write a simple Bash script to monitor MySQL replication status.
I'm trying to write a script that contains this screen -S demo -d -m
I'm trying to write a Python script to open a URL, but I keep

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.