Ebazhanov/linkedin-skill-assessments-quizzes

Go quiz with impossible question

開放

#6,951 建立於 2023年12月2日

 (6 則留言) (0 個反應) (0 位負責人)Python (13,515 個分叉)batch import
good first issuehelp wanted

倉庫指標

星標
 (27,188 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I'm submitting an ISSUE: please check one with "x"

  • New question{'s}
  • New assessment
  • Missed questions/answers
  • Request for new quiz/answers/...
  • Documentation issue or request for ...
  • ...

The following question:

Q6. Which is the only valid import statement in Go?

  • ­
      import "github/gin-gonic/gin"
  • ­
      import "https://github.com/gin-gonic/gin"
  • ­
      import "../template"
  • ­
      import "github.com/gin-gonic/gin"

Import in GoLang

has 2 correct answers. Technically, the first one is also correct for a package named github (go mod init github). Inside this package there could be a subdirectory gin-gonic/gin. This could then be imported with the given import statement.

貢獻者指南