go/doc/next
Austin Clements 4e695dd634 go/ast: add ParseDirective for parsing directive comments
This adds an ast.Directive API for parsing directive comments such as
"//go:build" and "//go:embed".

This will help tools standardize the syntax of these directive
comments. Even within the standard Go tools there's little agreement
on the finer details of the syntax of directives today.

Fixes #68021.

Change-Id: I84a988a667682c9ac70632df6e925461ac95e381
Reviewed-on: https://go-review.googlesource.com/c/go/+/704835
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2025-10-21 14:49:10 -07:00
..
6-stdlib go/ast: add ParseDirective for parsing directive comments 2025-10-21 14:49:10 -07:00
1-intro.md doc/next: initialize 2025-07-23 11:41:17 -07:00
2-language.md doc/go_spec.html: document new(expr) 2025-09-23 12:08:27 -07:00
3-tools.md cmd/go: unify "go fix" and "go vet" 2025-10-10 13:10:21 -07:00
4-runtime.md doc/next: initialize 2025-07-23 11:41:17 -07:00
5-toolchain.md cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
7-ports.md all: remove support for windows/arm 2025-08-06 14:28:12 -07:00