For each new release, a module's release version number specifically reflects the nature of the module's changes since the preceding release. Once you've published the module, developers importing its packages will be able to resolve a dependency on the module by running commands such as go get.Ī module's developer uses each part of a module's version number to signal the version’s stability and backward compatibility.
When you want to make a module available for other developers, you publish it so that it's visible to Go tools.
#Devdocs github update
When you're developing modules to publish for others to use, you can help ensure that your modules are easier for other developers to use by following the repository conventions described in this topic.Ī major version update can be very disruptive to your module's users because it includes breaking changes and represents a new module. This topic describes the high-level steps in that workflow. When you develop modules for use by other developers, you can follow a workflow that helps ensure a reliable, consistent experience for developers using the module. This topic gives an overview of developing and publishing modules. You can collect related packages into modules, then publish the modules for other developers to use. You can avoid an SQL injection risk by providing SQL parameter values asĭeveloping modules Developing and publishing modules
Return an error when their processing is no longer needed.įor some advanced programs, you might need to tune connection pool parameters Have your application's function calls and services stop working early and Use to perform common database operations.Ĭanceling in-progress database operations Including Commit and Rollback, as well as methods you Sql.Tx exports methods representing transaction-specific semantics,
#Devdocs github code
Handle with database connection properties, the handle represents a connectionĮxecuting SQL statements that don't return dataįor SQL operations that might change the database, including SQLįor SELECT statements that return data from a query, using theĭefining a prepared statement for repeated use can help your code run a bitįaster by avoiding the overhead of re-creating the statement each time your You use the Go database handle to execute database operations. Introduces the basics of accessing a relational database using Go and theĭatabase/sql package in the standard library.Īn overview of Go's data access features. When your code uses external packages, those packages (distributed as modules) become dependencies.Īccessing databases Tutorial: Accessing a relational database
#Devdocs github how to
Summarizes tools and methodologies to diagnose problems in Go programs.Ī document that describes how Go manages memory, and how to make the most of it. The language specification, both of which should be read first.Ī document that summarizes commonly used editor plugins and IDEs with
#Devdocs github install
$ go install will place the tour binary in yourĪ document that gives tips for writing clear, idiomatic Go code.Ī must read for any new Go programmer. Methods and interfaces and the third introduces Go's concurrency primitives.Įach section concludes with a few exercises so you can practice what you've The first section covers basic syntax and data structures the second discusses This doc explains how to develop a simple set of Go packages inside a module,Īn interactive introduction to Go in three sections. With generics, you can declare and use functions or types that are written to work with any of a set of types provided by calling code.įuzzing can generate inputs to your tests that can catch edge cases and security issues that you may have missed. Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework. Multi-module workspaces are useful for making changes across multiple modules. Introduces the basics of creating and using multi-module workspaces in Go. Tutorial: Getting started with multi-module workspaces Learn a bit about Go code, tools, packages, and modules.Ī tutorial of short topics introducing functions, error handling, arrays, maps, unit testing, and compiling. Instructions for downloading and installing Go.Ī brief Hello, World tutorial to get started.