first commit
This commit is contained in:
17
static-demo.go
Normal file
17
static-demo.go
Normal file
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
|
||||
//go:embed sample.txt
|
||||
var s string
|
||||
|
||||
func main() {
|
||||
|
||||
// //go:embed sample.txt
|
||||
// var s string
|
||||
fmt.Println(s)
|
||||
}
|
Reference in New Issue
Block a user