go programs give me `Function "main" not defined `
- Dominant language
- TypeScript
- Stars
- 10.4k
- Forks
- 521
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Whatever go program i load, be it a simple helloworld or a real program, it spits out the error above
**To Reproduce**
Steps to reproduce the behavior:
1. mkdir hello && cd hello
2.
```
echo "package main\n\
\n\
import \"fmt\"\n\
\n\
func main() {\n\
fmt.Println(\"Hello, World\")\n\
}" > main.go
```
3. go build
4. gdbgui
**Expected behavior**
should be working. gdb works fine
**Screenshots**

**Please complete the following information:**
* OS: arch linux
* gdbgui version (`gdbgui -v`): 0.13.2.0
* gdb version (`gdb -v`): 9.1
* browser [e.g. chrome, safari]: qutebrowser
* python packages (`pip freeze`):
```
appdirs==1.4.3
argcomplete==1.11.1
attrs==19.3.0
black==19.10b0
CacheControl==0.12.6
chardet==3.0.4
Click==7.0
colorama==0.4.3
contextlib2==0.6.0
distlib==0.3.0
distro==1.4.0
html5lib==1.0.1
idna==2.9
Jinja2==2.11.1
lensfun==0.3.95
MarkupSafe==1.1.1
msgpack==0.6.2
ordered-set==3.1.1
packaging==20.1
pathspec==0.7.0
pep517==0.8.1
pipx==0.15.1.3
progress==1.5
Pygments==2.5.2
pyparsing==2.4.6
pyPEG2==2.15.2
PyQt5==5.14.1
PyQt5-sip==12.7.1
PyQtWebEngine==5.14.0
pytoml==0.1.21
PyYAML==5.3
qutebrowser==1.10.1
regex==2020.2.20
requests==2.23.0
retrying==1.3.3
six==1.14.0
toml==0.10.0
typed-ast==1.4.1
ufw==0.36
urllib3==1.25.8
userpath==1.3.0
webencodings==0.5.1
youtube-dl==2020.3.1
```
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.