diff --git a/_content/css/styles.css b/_content/css/styles.css index e22d36c6..a438d157 100644 --- a/_content/css/styles.css +++ b/_content/css/styles.css @@ -3878,12 +3878,30 @@ a.UseCase-anchorLink.selected::before { img.PullQuote-image { width: 2.625rem; } +.Masonry { + column-count: 1; + column-gap: 3.5rem; + row-gap: 3.5rem; + column-fill: balance; +} .BigCard { border: var(--border); border-radius: 0.25rem; padding: 0 1.75rem; + padding-bottom: 1rem; margin-bottom: 1.5rem; } +.Masonry .BigCard { + margin-bottom: unset; + margin-top: 1.5rem; + min-width: 33%; + height: max-content; + display: inline-block; + -webkit-column-break-inside: avoid; + page-break-inside: avoid; + break-inside: avoid; + width: 100%; +} .BigCard h2 { margin-top: 1.5rem; font-style: normal; @@ -3893,6 +3911,11 @@ img.PullQuote-image { border-bottom: var(--border); padding-bottom: 0.5rem; } +@media only screen and (min-width: 48rem) { + .Masonry { + column-count: 2; + } +} .Card { background-color: var(--white); border: var(--border); diff --git a/_content/doc/index.html b/_content/doc/index.html index a4598998..44400456 100644 --- a/_content/doc/index.html +++ b/_content/doc/index.html @@ -1,6 +1,7 @@

@@ -18,51 +19,35 @@ fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.

-
+
-

Getting started

+
+ +

Getting Started

Installing Go

-

-Instructions for downloading and installing Go. -

+

Instructions for downloading and installing Go.

Tutorial: Getting started

-

-A brief Hello, World tutorial to get started. Learn a bit about Go code, tools, packages, and modules. -

+

A brief Hello, World tutorial to get started. Learn a bit about Go code, tools, packages, and modules.

Tutorial: Create a module

-

-A tutorial of short topics introducing functions, error handling, arrays, maps, unit testing, and compiling. -

+

A tutorial of short topics introducing functions, error handling, arrays, maps, unit testing, and compiling.

Tutorial: Getting started with multi-module workspaces

-

-Introduces the basics of creating and using multi-module workspaces in Go. -Multi-module workspaces are useful for making changes across multiple modules. -

+

Introduces the basics of creating and using multi-module workspaces in Go. Multi-module workspaces are useful for making changes across multiple modules.

-

Tutorial: Developing a RESTful - API with Go and Gin

-

-Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework. -

+

Tutorial: Developing a RESTful API with Go and Gin

+

Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework.

Tutorial: Getting started with generics

-

-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. -

+

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.

Tutorial: Getting started with fuzzing

-

-Fuzzing can generate inputs to your tests that can catch edge cases and security issues that you may have missed. -

+

Fuzzing can generate inputs to your tests that can catch edge cases and security issues that you may have missed.

Writing Web Applications

-

-Building a simple web application. -

+

Building a simple web application.

How to write Go code

@@ -71,26 +56,34 @@ and it shows how to use the go command to build and test packages.

- -

A Tour of Go

An interactive introduction to Go in three sections. The first section covers basic syntax and data structures; the second discusses methods and interfaces; and the third introduces Go's concurrency primitives. Each section concludes with a few exercises so you can practice what you've -learned. You can take the tour -online or install it locally with: +learned. You can take the tour online or install it locally with:

-
-$ go install golang.org/x/website/tour@latest
+
+
+	$ go install golang.org/x/website/tour@latest
+	
 
+

This will place the tour binary in your GOPATH's bin directory.

-

Using and understanding Go

+
+ + +
+ +

Using and understanding Go

Effective Go

@@ -136,109 +129,12 @@ Main documentation page for profile-guided optimization (PGO) of Go applications

Accessing databases

+
-

Tutorial: Accessing a relational database

-

-Introduces the basics of accessing a relational database using Go and the -database/sql package in the standard library. -

-

Accessing relational databases

-

-An overview of Go's data access features. -

+
-

Opening a database handle

-

-You use the Go database handle to execute database operations. Once you open a -handle with database connection properties, the handle represents a connection -pool it manages on your behalf. -

- -

Executing SQL statements that don't return data

-

-For SQL operations that might change the database, including SQL -INSERT, UPDATE, and DELETE, you use -Exec methods. -

- -

Querying for data

-

-For SELECT statements that return data from a query, using the -Query or QueryRow method. -

- -

Using prepared statements

-

-Defining a prepared statement for repeated use can help your code run a bit -faster by avoiding the overhead of re-creating the statement each time your -code performs the database operation. -

- -

Executing transactions

-

-sql.Tx exports methods representing transaction-specific semantics, -including Commit and Rollback, as well as methods you -use to perform common database operations. -

- -

Canceling in-progress database operations

-

-Using context.Context, you can -have your application's function calls and services stop working early and -return an error when their processing is no longer needed. -

- -

Managing connections

-

-For some advanced programs, you might need to tune connection pool parameters -or work with connections explicitly. -

- -

Avoiding SQL injection risk

-

-You can avoid an SQL injection risk by providing SQL parameter values as -sql package function arguments -

- -

Developing modules

- -

Developing and publishing modules

-

-You can collect related packages into modules, then publish the modules for other developers to use. This topic gives an overview of developing and publishing modules. -

- -

Module release and versioning 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 describes the high-level steps in that workflow. -

- -

Managing module source

-

-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. -

- -

Developing a major version update

-

-A major version update can be very disruptive to your module's users because it includes breaking changes and represents a new module. Learn more in this topic. -

- -

Publishing a module

-

-When you want to make a module available for other developers, you publish it so that it's visible to Go tools. 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 version numbering

-

-A module's developer uses each part of a module's version number to signal the version’s stability and backward compatibility. For each new release, a module's release version number specifically reflects the nature of the module's changes since the preceding release. -

- -

Frequently Asked Questions (FAQ)

-

-Answers to common questions about Go. -

- -

References

+

References

Package Documentation

@@ -278,75 +174,128 @@ same variable in a different goroutine.

Release History

A summary of the changes between Go releases.

-

Codewalks

+
+ + +
+ +

Accessing databases

+ +

Tutorial: Accessing a relational database

-Guided tours of Go programs. +Introduces the basics of accessing a relational database using Go and the +database/sql package in the standard library.

- -

From the Go Blog

-

The official blog of the Go project, featuring news and in-depth articles by -the Go team and guests.

- -

Language

- - -

Packages

- - -

Modules

- - -

Tools

- - -

Wiki

+

Accessing relational databases

-The Go Wiki, maintained by the Go community, includes articles about the Go language, tools, and other resources. +An overview of Go's data access features.

-

-See the Learn page at the Wiki -for more Go learning resources. +

Opening a database handle

+

+You use the Go database handle to execute database operations. Once you open a +handle with database connection properties, the handle represents a connection +pool it manages on your behalf.

-

Talks

+

Executing SQL statements that don't return data

+

+For SQL operations that might change the database, including SQL +INSERT, UPDATE, and DELETE, you use +Exec methods. +

- +

Querying for data

+

+For SELECT statements that return data from a query, using the +Query or QueryRow method. +

+ +

Using prepared statements

+

+Defining a prepared statement for repeated use can help your code run a bit +faster by avoiding the overhead of re-creating the statement each time your +code performs the database operation. +

+ +

Executing transactions

+

+sql.Tx exports methods representing transaction-specific semantics, +including Commit and Rollback, as well as methods you +use to perform common database operations. +

+ +

Canceling in-progress database operations

+

+Using context.Context, you can +have your application's function calls and services stop working early and +return an error when their processing is no longer needed. +

+ +

Managing connections

+

+For some advanced programs, you might need to tune connection pool parameters +or work with connections explicitly. +

+ +

Avoiding SQL injection risk

+

+You can avoid an SQL injection risk by providing SQL parameter values as +sql package function arguments +

+ +
+ + +
+ +

Developing modules

+ +

Developing and publishing modules

+

+You can collect related packages into modules, then publish the modules for other developers to use. This topic gives an overview of developing and publishing modules. +

+ +

Module release and versioning 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 describes the high-level steps in that workflow. +

+ +

Managing module source

+

+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. +

+ +

Developing a major version update

+

+A major version update can be very disruptive to your module's users because it includes breaking changes and represents a new module. Learn more in this topic. +

+ +

Publishing a module

+ +

+When you want to make a module available for other developers, you publish it so that it's visible to Go tools. 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 version numbering

+ +

+A module's developer uses each part of a module's version number to signal the version’s stability and backward compatibility. For each new release, a module's release version number specifically reflects the nature of the module's changes since the preceding release. +

+ +

Frequently Asked Questions (FAQ)

+ +

+Answers to common questions about Go. +

+ +
+ + +
+ +

Talks

A Video Tour of Go

@@ -375,10 +324,91 @@ This talk expands on the Go Concurrency Patterns talk to dive deeper into See the Go Talks site and wiki page for more Go talks.

-

Non-English Documentation

+
+ +
+ +

Codewalks

+Guided tours of Go programs. +

+ + + +

Language

+ + +

Packages

+ + +

Modules

+ + +

Tools

+ + +
+ + +
+ +

Wiki

+

+The Go Wiki, maintained by the Go community, includes articles about the Go language, tools, and other resources. +

+ +

+See the Learn page at the Wiki +for more Go learning resources. +

+ +
+ + +
+ +

Non-English Documentation

See the NonEnglish page at the Wiki for localized documentation.

+ +
+ + +