Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
存在しない配列のキーにアクセスしようとすると、throw:indexがstacktraceで範囲外になります。
tmp [key]が「設定されている」かどうかを確認するにはどうすればよいですか?
これは実際に機能します:
if len(url) > 1 { tmp := strings.Split(url[1],"=",0); if len(tmp) >1{ sess = tmp[1]; } }