![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
sourcegraph.com/sqs/goreturns
This tool adds zero-value return values to incomplete Go return statements, to save you time when writing Go. It is inspired by and based on goimports.
full 30-second screencast: http://youtu.be/hyEMO9vtKZ8
For example, the following incomplete return statement:
func F() (*MyType, int, error) { return errors.New("foo") }
is made complete by adding nil and 0 returns (the zero values for *MyType and int):
func F() (*MyType, int, error) { return nil, 0, errors.New("foo") }
To install:
go get -u github.com/sqs/goreturns
To run:
goreturns file.go
To view a diff showing what it'd do on a sample file:
goreturns -d $GOPATH/github.com/sqs/goreturns/_sample/a.go
Editor integration: replace gofmt or goimports in your post-save hook with goreturns. By default goreturns calls goimports on files before performing its own processing.
It acts the same as gofmt (same flags, etc) but in addition to code formatting, also fixes returns.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.