Last active
October 4, 2021 10:56
-
-
Save gecko655/123fb59b979be50fe96e6aa3b80c66d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
_ "embed" | |
"fmt" | |
"strings" | |
) | |
//go:embed test.txt | |
var Content []byte | |
var Table []string | |
func init() { | |
Table = strings.Split(string(Content), "\n") | |
} | |
func main() { | |
fmt.Printf("%#v\n", Table) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello | |
world |
Author
gecko655
commented
Oct 4, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment