golang.org/x/mod/modfile.WorkFile.AddGoStmt (method) one use golang.org/x/mod/modfile (current package) work.go#L112: func (f *WorkFile) AddGoStmt(version string) error {
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)