Files
Dmitri ShuralyovandGopher Robot a8bae73673 all: make copyright headers consistent
The standard copyright header at https://go.dev/doc/contribute#copyright
has a single space (also see CL 20022). Also, add it to a files where it
was missed.

Change-Id: I341ce5b5c455efa768b65597c387866e47a6757e
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/649382
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2025-02-18 09:38:25 -08:00

60 lines
931 B
Go

// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// package doc tests that Go documentation is transferred
// to the generated code.
package doc
// F is a function.
func F() {}
// C is a constant.
const C = true
// V is a var.
var V string
// A group of vars.
var (
// A specific var.
Specific string
NoDocVar float64
)
// Before is a method.
func (_ *S) Before() {}
// S is a struct.
type S struct {
// SF is a field.
SF string
// blank (unexported) field.
_ string
// Anonymous field.
*S2
// Multiple fields.
F1, F2 string
}
// After is another method.
func (_ *S) After() {}
// A generic comment with <HTML>.
type (
// S2 is a struct.
S2 struct{}
NoDoc struct{}
)
// NewS is a constructor.
func NewS() *S {
return nil
}
// I is an interface.
type I interface {
// IM is a method.
IM()
}