20 lines
320 B
Go
20 lines
320 B
Go
// Package router ...
|
|
//
|
|
// Description : router ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 2025-05-28 20:58
|
|
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"testing"
|
|
)
|
|
|
|
func TestNewServer(t *testing.T) {
|
|
s := NewServer(9087)
|
|
s.Router().GET("/ping", func(c *gin.Context) {})
|
|
s.Start()
|
|
}
|