Learning and Communication: Go Language Technology WeChat Group

Business cooperation plus WeChat: LetsFeng



Textbooks, documents to learn Go language, I strongly recommend this book


Start your Go language learning journey now! Life is too short, let's Go.


picture

picture



Learning and sharing: Goland latest version activation simple tutorial, the whole family bucket universal version activation code

GoLand 2022.2  brings new features to Generics and  . go.workWe also added support for fuzzing .

SQL statements are now auto-detected and you get full code assistance for them.

GoLand now supports WebSocket connections and can send GraphQL queries over HTTP and WebSocket protocols.

Generics

 Intent action to convert empty interface to any

GoLand's new check can report empty interface usage as a type or type constraint.
Another intent action is to  interface{} replace with  any. From the intent action's popup, you can replace all empty interfaces in the file.

picture

Quick fix for removing type parameters with empty parameter lists

Type parameters with empty parameter lists are now reported as errors. We added a quick fix to remove it.

picture

Checking for unused type parameters

We've added a new inspection that reports unused type parameters. They will be greyed out and when you hover over them you will see a warning.

picture

Check for union of interface and method

The IDE now reports an error if you try to use an interface with a method in a union.

picture

Fuzzing

run fuzz tests

You can now run fuzz tests from GoLand. If you click on the green triangle icon in the space next to the fuzz test, you will see different options for running the test. If the test fails, the failed seed corpus entry will be written to a file and placed in  testdata the package directory of the folder.


The path to this file will also appear in the console as a clickable link. If you click this link, the file will open in the IDE with a green triangle icon at the top of the file. Clicking this icon will run  go test and display the failed seed corpus entries.


From GoLand you can also run fuzz tests like normal unit tests

picture

A quick fix for changing the Go SDK

In GoLand, if a Go SDK is configured that does not support fuzzing, the run button will no longer appear in the gutter. We've added a quick fix that changes the Go SDK when the current Go SDK doesn't support fuzzing.


picture

For more new features of Goland, you can check the following official website link. As for using this IDE tool, you must first activate the IDE, or authorize it, you can check: Jetbrains Family Bucket Activation Code valid for 1 year, supports all versions, Support all systems

Reference link: https://www.jetbrains.com/zh-cn/go/whatsnew/

For more technical articles or video tutorials related to the Go language, please follow this official account to obtain and view, thank you for your support and trust!