internal/readme: use go:generate rather than Make

Simplify the readme generation to just use go:generate, no longer
depending on Make or bash.

Subsequent CLs will generate more documentation in a similar manner.

For #442
This commit is contained in:
Rob Findley 2025-09-10 19:25:22 +00:00 • committed by Robert Findley
commit 872b437b2a

9
internal/readme/doc.go Normal file
View file

@ -0,0 +1,9 @@
// Copyright 2025 The Go MCP SDK Authors. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
//go:generate go run golang.org/x/example/internal/cmd/weave@latest -o ../../README.md ./README.src.md
// The readme package is used to generate README.md at the top-level of this
// repo. Regenerate the README with go generate.
package readme