server.go
func (a *App) Stop(err error) error {
	a.cancel()
	if err != nil && errors.Cause(err) != context.Canceled {
		a.Logger.Error(err)
		return err
	}
	return nil
}
func (a *App) Stop(err error) error {
	a.cancel()
	if err != nil && errors.Cause(err) != context.Canceled {
		a.Logger.Error(err)
		return err
	}
	return nil
}
func ( a * App ) Stop ( err error ) error { a . cancel ( ) if err != nil && errors . Cause ( err ) != context . Canceled { a . Logger . Error ( err ) return err } return nil }
// Stop the application and attempt to gracefully shutdown
Stop the application and attempt to gracefully shutdown