Skip to content

Releases: gopulse/pulse

v0.4.1

13 Apr 12:12
8e8c556
Compare
Choose a tag to compare

🧹 Updates

  • Export prefix, router fields in Group struct

v0.4.0

13 Apr 11:53
Compare
Choose a tag to compare

🚀 New

  • Add Query method in context to get queries from the request
  • Add JSON method in context to pass JSON object in request
  • Split the SetHeader method to SetResponseHeader and SetRequestHeader
  • Split the GetHeader method to GetResponseHeader and GetRequestHeader
  • Add the SetContentType method in context to define content-type in the request
  • Add the Accepts method to check if the specified content types are acceptable

🧹 Updates

  • Use header helpers methods in context

v0.3.1

12 Apr 12:52
Compare
Choose a tag to compare

🧹 Updates

  • Add context test environment
  • Add middleware test environment
  • Add route test environment
  • Modify router test environment

v0.3.0

11 Apr 21:27
Compare
Choose a tag to compare

🚀 New

  • Add tests workflow
  • Add coverage workflow
  • Add issue templates

🧹 Updates

  • Delete the running app test

v0.2.2

11 Apr 13:13
Compare
Choose a tag to compare

🧹 Updates

  • Change framework logo
  • Add travis ci for testing

v0.2.1

11 Apr 11:41
Compare
Choose a tag to compare

🧹 Updates

  • Add tests file in utils directory
  • Use routing signs as constants

v0.2.0

10 Apr 23:08
Compare
Choose a tag to compare

🚀 New

  • Support route group
router := NewRouter()
api := &Group{
  prefix: "/api",
  router: router,
}
v1 := api.Group("/v1")

// GET /api/v1/users
v1.GET("/users", func(ctx *Context) error {
  ctx.String("users")
  return nil
})

v0.1.1

10 Apr 20:46
Compare
Choose a tag to compare

🚀 New

  • Initialize serve app functionality
app.Run(":8083")
  • Use go figure

🧹 Updates

  • Update Package name
  • Export router in app
  • return nothing in Run method

v0.1.0

09 Apr 23:17
Compare
Choose a tag to compare

🚀 New

  • Support Wildcard route
router.Get("/users/*", func(ctx *Context) error {
  ctx.String("hello")
  return nil
})
  • Support Static Rotues
router.Get("/", func(ctx *Context) error {
  ctx.SetHeader("test-header", "test header value")
  fmt.Println(ctx.GetHeader("test-header"))
  return nil
})

🧹 Updates

  • Change ctx in context struct to RequestCtx

v0.0.6

09 Apr 00:51
Compare
Choose a tag to compare

🚀 New

  • Support Cookies
router.Get("/", func(ctx *Context) error {
  cookie := Cookie{
	  Name:        "test-cookie-1",
	  Value:       "Test Cookie 1",
	  Path:        "/",
	  Domain:      "localhost",
	  MaxAge:      0,
	  Expires:     time.Now().Add(24 * time.Hour),
	  Secure:      false,
	  HTTPOnly:    false,
	  SameSite:    "Lax",
	  SessionOnly: false,
  }
  ctx.SetCookie(&cookie)

  // Get Cookie
  ctx.GetCookie("test-cookie-1")

  return nil
})
  • Support Set / Get Headers
router.Get("/", func(ctx *Context) error {
  ctx.SetHeader("test-header", "test header value")
  fmt.Println(ctx.GetHeader("test-header"))
  return nil
})
  • Implement utils in package