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.
- +-Instructions for downloading and installing Go. -
+Instructions for downloading and installing Go.
-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.
-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.
-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.
--Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework. -
+Introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework.
-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.
-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.
-Building a simple web application. -
+Building a simple web application.
@@ -71,26 +56,34 @@ and it shows how to use the go
command
to build and test packages.
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'sbin
directory.Using and understanding Go
+
@@ -136,109 +129,12 @@ Main documentation page for profile-guided optimization (PGO) of Go applications
-Introduces the basics of accessing a relational database using Go and the
-database/sql
package in the standard library.
-
-An overview of Go's data access features. -
+-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. -
- -
-For SQL operations that might change the database, including SQL
-INSERT
, UPDATE
, and DELETE
, you use
-Exec
methods.
-
-For SELECT
statements that return data from a query, using the
-Query
or QueryRow
method.
-
-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. -
- -
-sql.Tx
exports methods representing transaction-specific semantics,
-including Commit
and Rollback
, as well as methods you
-use to perform common 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. -
- --For some advanced programs, you might need to tune connection pool parameters -or work with connections explicitly. -
- -
-You can avoid an SQL injection risk by providing SQL parameter values as
-sql
package function arguments
-
-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. -
- --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. -
- --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. -
- --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. -
- -
-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
.
-
-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. -
- --Answers to common questions about Go. -
- -@@ -278,75 +174,128 @@ same variable in a different goroutine.
A summary of the changes between Go releases.
-
-Guided tours of Go programs.
+Introduces the basics of accessing a relational database using Go and the
+database/sql
package in the standard library.
The official blog of the Go project, featuring news and in-depth articles by -the Go team and guests.
- --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. +
+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.
-
+For SQL operations that might change the database, including SQL
+INSERT
, UPDATE
, and DELETE
, you use
+Exec
methods.
+
+For SELECT
statements that return data from a query, using the
+Query
or QueryRow
method.
+
+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. +
+ +
+sql.Tx
exports methods representing transaction-specific semantics,
+including Commit
and Rollback
, as well as methods you
+use to perform common 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. +
+ ++For some advanced programs, you might need to tune connection pool parameters +or work with connections explicitly. +
+ +
+You can avoid an SQL injection risk by providing SQL parameter values as
+sql
package function arguments
+
+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. +
+ ++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. +
+ ++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. +
+ ++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. +
+ +
+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
.
+
+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. +
+ ++Answers to common questions about 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.
-+Guided tours of Go programs. +
+ ++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. +
+ +