Replace the use of "stutter" with a word which
more clearly conveys the meaning.
Change-Id: Ib1278d9eb24f5c84ed1f6e121493b6690f549687
Reviewed-on: https://go-review.googlesource.com/c/blog/+/322633
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Sameer Ajmani <ajmani@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The correct links to sections on cmd/go page are prefixed with "hdr-".
Change-Id: I8301a8f93c2a6ebbc3d67a9a82c809e776976922
Reviewed-on: https://go-review.googlesource.com/c/blog/+/319470
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This makes it easy to get a section link by clicking on the section heading.
Also add support for {#ID} in Markdown, in addition to the auto-generated anchors.
Change-Id: Idd9d6c7cec2395f86808220c885861dc6c45e9d6
Reviewed-on: https://go-review.googlesource.com/c/blog/+/314173
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Nothing in this package or its dependencies uses this variable,
after CL 293449.
Change-Id: I5abb409616bdbe991bb2cbb0014c358090b197f7
Reviewed-on: https://go-review.googlesource.com/c/blog/+/295213
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Moving these into underscore directories
hides them from "go mod tidy",
which otherwise wants to add a dependency
on gorilla for content/context/*.go.
Also update appengine.go and local.go
to know about new locations.
Change-Id: I7e1eaee7aaa971ee39c6c0e3cca475086443fbae
Reviewed-on: https://go-review.googlesource.com/c/blog/+/296369
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The custom search algorithm that was previously implemented and served
on the golang.org website has been removed via CL 292590 and CL 293412,
so remove the search box in the blog.golang.org header too.
For golang/go#44357.
Fixesgolang/go#44912.
Change-Id: I51478ccb568e94df50d0dc6920a26c8f30a04c3c
Reviewed-on: https://go-review.googlesource.com/c/blog/+/311969
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
The article contains links to code for strings.HasPrefix that reference
the wrong line number and URL to search for "Deprecated:" identifier
which also not working anymore.
This commit fix the line number link for strings.HasPrefix and
remove the line that describe examples for searching "Deprecated:"
identifier.
While at it, use HTTPS for link to Docstring and update the link
on Javadoc to latest location (according to the page redirect URL).
Signed-off-by: shulhan <m.shulhan@gmail.com>
Change-Id: Ife267af49c0816df2b3934d075c7a9a09eaac83e
Reviewed-on: https://go-review.googlesource.com/c/blog/+/302729
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Change-Id: I6a654d76983b6b0f96fe05e74bb314b265af8ba2
Reviewed-on: https://go-review.googlesource.com/c/blog/+/299869
Reviewed-by: Steve Francia <sfrancia@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
I renamed the argument to avoid duplicate variable names on example.
Change-Id: I7fea6d55c713880e5597f6e923e03c05e19792fd
GitHub-Last-Rev: b52867484b
GitHub-Pull-Request: golang/blog#49
Reviewed-on: https://go-review.googlesource.com/c/blog/+/296169
Reviewed-by: Jean de Klerk <deklerk@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Jean de Klerk <deklerk@google.com>
Change-Id: Ic29b16ee8c9356209880bece5d29ed9824c8c931
Reviewed-on: https://go-review.googlesource.com/c/blog/+/294229
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
For golang/go#44292.
Updates golang/go#27155.
Co-authored-by: Matt Pearring <pearring@users.noreply.github.com>
Change-Id: I6e0d6731d5848f81fce7e77cbb068174462c0e4e
Reviewed-on: https://go-review.googlesource.com/c/blog/+/292689
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Adding to each blog post a link to modules-related documentation.
Change-Id: I0f82692b528c2fe910466f36303573ce1ec98ccd
Reviewed-on: https://go-review.googlesource.com/c/blog/+/290389
Run-TryBot: Steve Traut <straut@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Right now https://blog.golang.org/playground looks like:
Inside the Go Playground
Andrew Gerrand and _NOTE: This article does not describe the current version of the Go Playground._
12 December 2013
The note is not an author.
(The blog program prints a warning about this mistake on startup,
without this CL.)
Change-Id: I2ea605e2f069f4e9c8fb76de1c32ef04d3f85a5d
Reviewed-on: https://go-review.googlesource.com/c/blog/+/284833
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Change-Id: I15acbe500ee05b3b87fa1cfb7eb7316c12cd3170
Reviewed-on: https://go-review.googlesource.com/c/blog/+/283292
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Change-Id: I0b69f26ac60ddc2509d2e15cca091f7fa949bf62
Reviewed-on: https://go-review.googlesource.com/c/blog/+/283272
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
From perspective of someone who may not or may have an experience on
having race conditions, the line number "15" a little bit off because it
does not have any reference to variable `t`.
Especially when the next paragraph said "The race detector shows the
problem: an unsynchronized read and write of the variable t".
This changes not only fix the line number "15", but also make it
consistent with actual output (although its run on Go tip not Go 1.1),
----
% go run -race race.go
950.434733ms
==================
WARNING: DATA RACE
Read at 0x00c00013e018 by goroutine 8:
main.main.func1()
race.go:14 +0x126
Previous write at 0x00c00013e018 by main goroutine:
main.main()
race.go:12 +0x194
Goroutine 8 (running) created at:
time.goFunc()
.../share/go/src/time/sleep.go:169 +0x51
==================
1.037465812s
1.706961927s
...
----
the read conflict is on `func 001` (line number 16 on example) and write
conflict is on main (line number 14 on example).
Change-Id: I3b9a7880178845d8dc4dff38e197fc3eef407e58
Reviewed-on: https://go-review.googlesource.com/c/blog/+/280712
Reviewed-by: Andrew Gerrand <adg@golang.org>
In the grpc.Dial option, the MaxDelay is set to time.Second, but in the
next example for a struct option the MaxDelay is set to time.Minute.
This changes make both examples use the same values for MaxDelay.
Change-Id: I0413b3ab88a1bcdc049827352b3662b98c88039d
Reviewed-on: https://go-review.googlesource.com/c/blog/+/277532
Reviewed-by: Jean de Klerk <deklerk@google.com>
Trust: Jean de Klerk <deklerk@google.com>
Run-TryBot: Jean de Klerk <deklerk@google.com>
Also remove spurious time in godoc.org-redirect.article.
It was copy-pasted from pkgsite-redesign.article, which needed it
because we posted two blog posts together, and the times
in 11years.article and pkgsite-redesign.article decided the
order in which they appeared on the blog.
But in general times are unnecessary, so remove the
one in godoc.org-redirect.article to avoid future copy-pasting.
Change-Id: I43e43baf911155d8f8e5fbc77110d4ede836518e
Reviewed-on: https://go-review.googlesource.com/c/blog/+/278933
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
A link is added to the first reference of pkg.go.dev in the
pkgsite-redesign.article. Captions with links to the page displayed are
also added.
For golang/go#42492
Change-Id: I8eb66b807d5179ea0e677951ba96119aeb0e4439
Reviewed-on: https://go-review.googlesource.com/c/blog/+/270805
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
The "height" attribute is removed from <img> tags so that images will
scale gracefully as the viewport width becomes narrower than the
original image size.
For golang/go#42493
Change-Id: I951a1d82a119f55d22cd564e871203d07a0a5f28
Reviewed-on: https://go-review.googlesource.com/c/blog/+/270804
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Since this is a very high SEO article and it's a copy-pasteable block, it gets
copy pasted without much thought, which leads to problems when the error is a
concrete type / interface / etc.
This CL adds a small note that users should watch out for the case when the
error type is not a pointer.
Fixesgolang/go#35361
Change-Id: Ibbd950c2a73a5f30cdab3517e042f69465adff97
Reviewed-on: https://go-review.googlesource.com/c/blog/+/252877
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Kevin Burke <kev@inburke.com>
Trust: Jean de Klerk <deklerk@google.com>
Trust: Damien Neil <dneil@google.com>
Fix misspelling of "techniques" in "Strings, bytes, runes and characters
in Go" article.
Change-Id: Idcd0ce68ec3f2a7605db3f4d756d5b03ae7f190c
GitHub-Last-Rev: a30ee08ecc
GitHub-Pull-Request: golang/blog#44
Reviewed-on: https://go-review.googlesource.com/c/blog/+/255179
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
When indentation is used to create a code block immediately following
a list, Markdown syntax is ambiguous: it can be interpreted as another
text paragraph belonging to the last list entry, or as a standalone
code block.
The original behavior in CL 197637 made this unambiguously a code block
because the present format did not support lists. This changed when the
article was converted to use Markdown syntax in CL 222848.
Start using a fenced code block instead of indentation to resolve the
Markdown ambiguity and restore original behavior.
For golang/go#33955.
Change-Id: I9537bc72d7a32f90592942591b2688fb2f26c452
Reviewed-on: https://go-review.googlesource.com/c/blog/+/245017
Reviewed-by: Jean de Klerk <deklerk@google.com>