Skip to content

Commit 49eaa78

Browse files
alexandearstapelberg
authored andcommitted
all: update links to Protocol Buffer documentation
https://developers.google.com/protocol-buffers/ states that this site will be deprecated January 2023 and provides https://protobuf.dev/ as a link to the new location. Generated .pb.go files are created by generate.bash using Go 1.18, so leave them unchanged for now. Fixes golang/protobuf#1520. Change-Id: I1ddf6f329c96ba05d7c7d8562ad2945f479ee09b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/466375 Reviewed-by: Michael Stapelberg <[email protected]> Reviewed-by: Lasse Folger <[email protected]>
1 parent e831c33 commit 49eaa78

File tree

8 files changed

+14
-18
lines changed

8 files changed

+14
-18
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
[![Build Status](https://travis-ci.org/protocolbuffers/protobuf-go.svg?branch=master)](https://travis-ci.org/protocolbuffers/protobuf-go)
55

66
This project hosts the Go implementation for
7-
[protocol buffers](https://developers.google.com/protocol-buffers), which is a
7+
[protocol buffers](https://protobuf.dev), which is a
88
language-neutral, platform-neutral, extensible mechanism for serializing
99
structured data. The protocol buffer language is a language for specifying the
1010
schema for structured data. This schema is compiled into language specific
1111
bindings. This project provides both a tool to generate Go code for the
1212
protocol buffer language, and also the runtime implementation to handle
1313
serialization of messages in Go. See the
14-
[protocol buffer developer guide](https://developers.google.com/protocol-buffers/docs/overview)
14+
[protocol buffer developer guide](https://protobuf.dev/overview)
1515
for more information about protocol buffers themselves.
1616

1717
This project is comprised of two components:
@@ -20,7 +20,7 @@ This project is comprised of two components:
2020
[`protoc-gen-go`](https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go)
2121
tool is a compiler plugin to `protoc`, the protocol buffer compiler. It
2222
augments the `protoc` compiler so that it knows how to
23-
[generate Go specific code for a given `.proto` file](https://developers.google.com/protocol-buffers/docs/reference/go-generated).
23+
[generate Go specific code for a given `.proto` file](https://protobuf.dev/reference/go/go-generated).
2424

2525
* Runtime library: The
2626
[`protobuf`](https://pkg.go.dev/mod/google.golang.org/protobuf) module
@@ -34,7 +34,7 @@ This project is comprised of two components:
3434
[text](https://pkg.go.dev/google.golang.org/protobuf/encoding/prototext)).
3535

3636
See the
37-
[developer guide for protocol buffers in Go](https://developers.google.com/protocol-buffers/docs/gotutorial)
37+
[developer guide for protocol buffers in Go](https://protobuf.dev/getting-started/gotutorial)
3838
for a general guide for how to get started using protobufs in Go.
3939

4040
This project is the second major revision of the Go protocol buffer API

cmd/protoc-gen-go/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// both proto2 and proto3 versions of the protocol buffer language.
77
//
88
// For more information about the usage of this plugin, see:
9-
//
10-
// https://developers.google.com/protocol-buffers/docs/reference/go-generated
9+
// https://protobuf.dev/reference/go/go-generated.
1110
package main
1211

1312
import (
@@ -22,7 +21,7 @@ import (
2221
"google.golang.org/protobuf/internal/version"
2322
)
2423

25-
const genGoDocURL = "https://developers.google.com/protocol-buffers/docs/reference/go-generated"
24+
const genGoDocURL = "https://protobuf.dev/reference/go/go-generated"
2625
const grpcDocURL = "https://grpc.io/docs/languages/go/quickstart/#regenerate-grpc-code"
2726

2827
func main() {

compiler/protogen/protogen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
"google.golang.org/protobuf/types/pluginpb"
4040
)
4141

42-
const goPackageDocURL = "https://developers.google.com/protocol-buffers/docs/reference/go-generated#package"
42+
const goPackageDocURL = "https://protobuf.dev/reference/go/go-generated#package"
4343

4444
// Run executes a function as a protoc plugin.
4545
//

encoding/protojson/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Package protojson marshals and unmarshals protocol buffer messages as JSON
66
// format. It follows the guide at
7-
// https://developers.google.com/protocol-buffers/docs/proto3#json.
7+
// https://protobuf.dev/programming-guides/proto3#json.
88
//
99
// This package produces a different output than the standard "encoding/json"
1010
// package, which does not operate correctly on protocol buffer messages.

encoding/protowire/wire.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package protowire parses and formats the raw wire encoding.
6-
// See https://developers.google.com/protocol-buffers/docs/encoding.
6+
// See https://protobuf.dev/programming-guides/encoding.
77
//
88
// For marshaling and unmarshaling entire protobuf messages,
99
// use the "google.golang.org/protobuf/proto" package instead.

proto/doc.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
// Package proto provides functions operating on protocol buffer messages.
66
//
77
// For documentation on protocol buffers in general, see:
8-
//
9-
// https://developers.google.com/protocol-buffers
8+
// https://protobuf.dev.
109
//
1110
// For a tutorial on using protocol buffers with Go, see:
12-
//
13-
// https://developers.google.com/protocol-buffers/docs/gotutorial
11+
// https://protobuf.dev/getting-started/gotutorial.
1412
//
1513
// For a guide to generated Go protocol buffer code, see:
16-
//
17-
// https://developers.google.com/protocol-buffers/docs/reference/go-generated
14+
// https://protobuf.dev/reference/go/go-generated.
1815
//
1916
// # Binary serialization
2017
//

reflect/protoregistry/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var conflictPolicy = "panic" // "panic" | "warn" | "ignore"
4646
// It is a variable so that the behavior is easily overridden in another file.
4747
var ignoreConflict = func(d protoreflect.Descriptor, err error) bool {
4848
const env = "GOLANG_PROTOBUF_REGISTRATION_CONFLICT"
49-
const faq = "https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict"
49+
const faq = "https://protobuf.dev/reference/go/faq#namespace-conflict"
5050
policy := conflictPolicy
5151
if v := os.Getenv(env); v != "" {
5252
policy = v

testing/protopack/pack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// This package is intended for use in debugging and/or creation of test data.
88
// Proper usage of this package requires knowledge of the wire format.
99
//
10-
// See https://developers.google.com/protocol-buffers/docs/encoding.
10+
// See https://protobuf.dev/programming-guides/encoding.
1111
package protopack
1212

1313
import (

0 commit comments

Comments
 (0)