github fortio/fortio v1.50.0
Fortio 1.50.0 - API changes

latest releases: v1.63.9, v1.63.8, v1.63.7...
15 months ago

This is a big change (thus the jump to 1.50) in the library/api code. Packages have moved for better re-usabilty and letting projects reuse more of fortio components without pulling in everything.

The log, dflag, and version packages have moved out for fortio.org/fortio into their own toplevel.

Change summary for callers/users of fortio log / dflag / version:

  • Remove /fortio in the imports. eg fortio.org/fortio/log becomes fortio.org/log
  • Replace log.SetFlagDefaultsForClientTools() by log.SetDefaultsForClientTools() (for cli)
  • Replace log.ChangeFlagsDefault() by dynloglevel.ChangeFlagsDefault()
  • fhttp.LogRequest is now in the top level log package.
  • Add either log.LoggerStaticFlagSetup() (cli) or dynloglevel.LoggerFlagSetup() (servers/dflag users, the package is fortio.org/dflag/dynloglevel)

You will also notice the flags are cleaner now, not showing up by just using some library code (in fnet or fhttp). Conversly if you want to assign a flag to these parameter use the new dflag.Flag("flagname", fnet.ConfigVar) in your main

What's Changed

  • moved logger to toplevel fortio.org/log, dflag and version - avoid flags in library modules (#706)
  • Dependabot and other dependency updates

Full Changelog: v1.40.1...v1.50.0

Don't miss a new fortio release

NewReleases is sending notifications on new releases.