Data type is not the same

There is a function

func registerRoutes() *gin.Engine {
    r := gin.Default() // data type is *gin.Engine
    return r // data type is *gin-gin.Engine

What have I missed and why the same object has two different data types?
In the beginning router is *gin.Engine and in the end it is *gin-gin.Engine.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.