/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/embedfunc.go
15 строк
308 B
Russ Cox
cmd/compile: require 'go 1.16' go.mod line for //go:embed
19 янв 2021, 23:07
19 янв 2021, 23:07
0575e35
Код
Авторство
О чём код?
// errorcheck // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p import _ "embed" func f() { //go:embed x.txt // ERROR "go:embed cannot apply to var inside func" var x string _ = x }