blob: f9ee7850748481f83e152c8932850ddd6371d912 [file] [log] [blame]
// Copyright 2021 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 deprecated has some deprecated symbols.
package deprecated
const GoodC = 1
// BadC is bad.
//
// Deprecated: use GoodC.
const BadC = 2
// WrongC is wrong.
// Deprecated: use GoodC.
const WrongC = 2
var GoodV = 1
// Deprecated: use GoodV.
var BadV = 2
func GoodF() {}
/*
BadF is bad.
Deprecated: use GoodF.
*/
func BadF() {}
/*
WrongF is wrong.
Deprecated: use GoodF.
*/
func WrongF() {}
type GoodT int
func NewGoodTGood() GoodT {}
// NewGoodTBad is bad.
//
// Deprecated: use NewGoodTGood.
func NewGoodTBad() GoodT {}
func (GoodT) GoodM() {}
// BadM is bad.
//
// Deprecated: use GoodM.
func (GoodT) BadM() {}
// BadT is bad.
//
// Deprecated: use GoodT.
// Don't use this.
type BadT int
func NewBadTGood() BadT {}
// Deprecated: use NewBadTGood.
func NewBadTBad() BadT {}
func (BadT) GoodM() {}
// Deprecated: use GoodM.
// You really should.
// For sure.
func (BadT) BadM() {}
// This function is not deprecated.
// Deprecated: not.
func (BadT) WrongM() {}