Go quiz with impossible question

Author: jordan-bonecutterCreated Dec 2, 2023Updated Jan 2, 2024
Labelshelp wantedgood first issue

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?

  • ­
go
      import "github/gin-gonic/gin"
  • ­
go
      import "https://github.com/gin-gonic/gin"
  • ­
go
      import "../template"
  • ­
go
      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.

Source: Ebazhanov/linkedin-skill-assessments-quizzes