MySQL - invalid memory address or nil pointer dereference
10 May 2023sql
Go
在 Go 連線資料庫之後做操作,卻出現以下錯誤:
runtime error: invalid memory address or nil pointer dereference
後來發現是 db 在程式中有重複宣告,所以以後出現這類型錯誤,先檢查物件是否是 nil。
sql
Go
在 Go 連線資料庫之後做操作,卻出現以下錯誤:
runtime error: invalid memory address or nil pointer dereference
後來發現是 db 在程式中有重複宣告,所以以後出現這類型錯誤,先檢查物件是否是 nil。
solidity
picoCTF
Go
ethernaut
blockchain
sql
react
smart-contract
typescript
solana
linux
javascript
css
Linux
ubuntu
next.js
jekyll
hardhat
golang
ethers
ethereum
Secureum
Rust
zsh
wallet
vscode
truffle
rpc
notion
notes
nodejs
nextjs
mocha
html
github
git
geth
express
eslint
cloudflare
Vim
DSA