package main
import "fmt"
// @deprecated Use NewFunction instead
func DeprecatedFunction() {
fmt.Println("This function is deprecated")
NewFunction()
}
// New function that replaces the deprecated one
func NewFunction() {
fmt.Println("Using the new function")
}
func main() {
// Call the deprecated function
DeprecatedFunction()
}
cGFja2FnZSBtYWluCgppbXBvcnQgImZtdCIKCi8vIEBkZXByZWNhdGVkIFVzZSBOZXdGdW5jdGlvbiBpbnN0ZWFkCmZ1bmMgRGVwcmVjYXRlZEZ1bmN0aW9uKCkgewogICAgZm10LlByaW50bG4oIlRoaXMgZnVuY3Rpb24gaXMgZGVwcmVjYXRlZCIpCiAgICBOZXdGdW5jdGlvbigpCn0KCi8vIE5ldyBmdW5jdGlvbiB0aGF0IHJlcGxhY2VzIHRoZSBkZXByZWNhdGVkIG9uZQpmdW5jIE5ld0Z1bmN0aW9uKCkgewogICAgZm10LlByaW50bG4oIlVzaW5nIHRoZSBuZXcgZnVuY3Rpb24iKQp9CgpmdW5jIG1haW4oKSB7CiAgICAvLyBDYWxsIHRoZSBkZXByZWNhdGVkIGZ1bmN0aW9uCiAgICBEZXByZWNhdGVkRnVuY3Rpb24oKQp9Cg==