Skip to content

v1.1.0

Choose a tag to compare

@limpo1989 limpo1989 released this 10 Nov 09:50
· 35 commits to master since this release
2dd2233

BREAKING CHANGES

This is a breaking change version where we have redesigned the BeanInit/AppEvent interface to decouple the business code from Go-Spring, thereby removing the coupling between the business code and Go-Spring.

type MyApp struct {}

// You need to modify the type gs.Context to context.Context.
func(m *MyApp) OnInit(ctx /* gs.Context ->*/ context.Context) error {
  // use gs.FromContext(ctx) to get gs.Context
  return nil
}

// You need to modify the type gs.Context to context.Context.
func(m *MyApp) OnAppStart(ctx /* gs.Context ->*/ context.Context) {
  // use gs.FromContext(ctx) to get gs.Context
}

func(m *MyApp) OnAppStop(ctx context.Context) {
}

What's Changed

  • Add README_CN.md by @limpo1989 in #1
  • Fixed an dead-loop of value binding when struct slices have default values by @limpo1989 in #2
  • Automatically decide whether to clean the container by @limpo1989 in #3
  • Redesign the BeanInit interface to get away from Go-Spring dependence by @limpo1989 in #4
  • Update README.md by @limpo1989 in #5
  • Redesign the AppEvent interface to get away from Go-Spring dependence by @limpo1989 in #6

New Contributors

Full Changelog: v1.0.0...v1.1.0