When you describe different aspects of a type using overlapping interfaces, GoLand will not report duplicated methods for them as errors. Support for overlapping interfaces - Go 1.14 has added support for embedding overlapping interfaces, and so has this release.When you paste some text in a string literal, the IDE escapes double-quotes.GoLand 2020.1 adds parentheses around return types after the comma when writing a signature of a multi-value return function.
#Goland live templates code
Besides that, Basic Code Completion will suggest literals and conversions.It suggests names for the current package declarations and parameter names for functions and methods. Please welcome Basic Code Completion for comments, which makes writing documentation a lot easier.Finally, it provides a list of suggestions for possible pointers in the expression.In type assertion, it offers the type of the assigned variable.It also suggests compatible types in assertions and type switch cases first.Smart Code Completion suggests a pointer to struct initializer.For the return type of the function, completion provides suggestions for local variables and zero values that will be appropriate for the corresponding return value type.Now when you are working with maps, code completion moves the cursor to behind the closing bracket after you complete a key type.It also adds a comma at the end of the statement in declarations of composite literals. The Fill Fields action adds spaces after colons when required by the formatting rules.Define struct and interface types faster simply by typing the type keyword or struct and interface.GoLand 2020.1 will suggest if err != nil to complete an error-handling pattern.
#Goland live templates how to
The new version will show a notification before you commit if there are replacements with local paths, so that you don’t commit them by accident.Ĭode Completion features you don’t need to learn how to use.