go.mod: add go.mod and move pygments to third_party
After go1.16, go will use module mode by default, even when the repository is checked out under GOPATH or in a one-off directory. Add go.mod, go.sum to keep this repo buildable without opting out of the module mode. > go mod init github.com/mmcgrana/gobyexample > go mod tidy > go mod vendor In module mode, the 'vendor' directory is special and its contents will be actively maintained by the go command. pygments aren't the dependency the go will know about, so it will delete the contents from vendor directory. Move it to `third_party` directory now. And, vendor the blackfriday package. Note: the tutorial contents are not affected by the change in go1.16 because all the examples in this tutorial ask users to run the go command with the explicit list of files to be compiled (e.g. `go run hello-world.go` or `go build command-line-arguments.go`). When the source list is provided, the go command does not have to compute the build list and whether it's running in GOPATH mode or module mode becomes irrelevant.
This commit is contained in:
27
third_party/pygments/tests/examplefiles/sqlite3.sqlite3-console
vendored
Normal file
27
third_party/pygments/tests/examplefiles/sqlite3.sqlite3-console
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
SQLite version 3.4.2
|
||||
Enter ".help" for instructions
|
||||
sqlite> .schema
|
||||
CREATE TABLE paste (paste_id integer, code text, parsed_code text, pub_date
|
||||
varchar(24), language varchar(64), parent_id integer, url varchar(128));
|
||||
CREATE TABLE vars (key varchar(24), value varchar(128));
|
||||
sqlite> a '
|
||||
...> '
|
||||
...> ;
|
||||
SQL error: near "a": syntax error
|
||||
sqlite> %;
|
||||
SQL error: near "%": syntax error
|
||||
sqlite> select count(language), language from paste group by language order
|
||||
...> by count(language) desc;
|
||||
144|python
|
||||
76|text
|
||||
22|pycon
|
||||
9|ruby
|
||||
7|c
|
||||
7|js
|
||||
6|html+django
|
||||
4|html
|
||||
4|tex
|
||||
2|html+php
|
||||
1|cpp
|
||||
1|scheme
|
||||
sqlite>
|
||||
Reference in New Issue
Block a user