title: Swagger UI still showing the example
body: <p>I want to use Swagger for my RESTFul API Documentation from Go and Gin.</p>
  <p>I have this code in main.go:
  package main</p>
  <pre><code>import (
      &quot;gowebservice/config&quot;
      &quot;gowebservice/controllers&quot;
  
      &quot;github.com/gin-gonic/gin&quot;
      swaggerFiles &quot;github.com/swaggo/files&quot;
      ginSwagger &quot;github.com/swaggo/gin-swagger&quot;
  
      _ &quot;github.com/swaggo/gin-swagger/example/basic/docs&quot;
  )
  
  // @title Students API
  // @version 1.0
  // @description This is a basic API Students using Gin and Gorm.
  
  // @host localhost:8080
  // @BasePath /
  
  func main() {
      r := gin.Default()
  
      config.ConnectDatabase()
  
      v1 := r.Group(&quot;/api/v1&quot;)
      {
          v1.GET(&quot;students/all&quot;, controllers.GetStudents)
      }
  
      r.GET(&quot;/swagger/*any&quot;, ginSwagger.WrapHandler(swaggerFiles.Handler))
  
      r.Run()
  }
  </code></pre>
  <p>and this is my endpoint that have GET method:</p>
  <pre><code>package controllers
  
  import (
      &quot;gowebservice/config&quot;
      &quot;gowebservice/models&quot;
      &quot;net/http&quot;
  
      &quot;github.com/gin-gonic/gin&quot;
  )
  
  // GetStudents godoc
  // @Summary Show a list of students
  // @Accept  json
  // @Produce  json
  // @Router /students [get]
  func GetStudents(c *gin.Context) {
      var students []models.Student
  
      if err := config.DB.Find(&amp;students).Error; err != nil {
          c.JSON(http.StatusBadRequest, gin.H{&quot;error&quot;: &quot;Record not found!&quot;})
          return
      }
      c.JSON(http.StatusOK, students)
  }
  </code></pre>
  <p>When I used <code>swag init</code> and <code>go run main.go</code>, Swagger UI still showing the example not my endpoint.</p>
  <p><a href="https://i.stack.imgur.com/BHktc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BHktc.png" alt="enter image description here" /></a></p>
  <p>Anyone can help me?</p>