all: modernize code (#868)

Use `go fix ./...` to modernize the code.
This commit is contained in:
Oleksandr Redko 2026-03-31 11:58:02 +03:00 • committed by GitHub
commit a1f808c86e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,8 +22,8 @@ func TestContentUnmarshalNil(t *testing.T) {
tests := []struct {
name string
json string
content interface{}
want interface{}
content any
want any
}{
{
name: "CallToolResult nil Content",
@ -83,7 +83,7 @@ func TestContentUnmarshalNilWithDifferentTypes(t *testing.T) {
tests := []struct {
name string
json string
content interface{}
content any
expectError bool
}{
{
@ -145,7 +145,7 @@ func TestContentUnmarshalNilWithEmptyContent(t *testing.T) {
tests := []struct {
name string
json string
content interface{}
content any
expectError bool
}{
{
@ -186,7 +186,7 @@ func TestContentUnmarshalNilWithInvalidContent(t *testing.T) {
tests := []struct {
name string
json string
content interface{}
content any
expectError bool
}{
{