Slides, source code and examples used for the training videos I recorded, join the fun at https://youtube.com/@MarioCarrion
go install golang.org/x/tools/cmd/present
This will install the binary in your GOBIN
then run it using:
present
Slides and examples used for my training videos
Home Page: https://youtube.com/MarioCarrion
License: MIT License
Slides, source code and examples used for the training videos I recorded, join the fun at https://youtube.com/@MarioCarrion
go install golang.org/x/tools/cmd/present
This will install the binary in your GOBIN
then run it using:
present
migrate -path db/migrations/ -database postgres://user:password@localhost:5432/dbname?sslmode=disable up
above fails in wsl2 with zsh. after little googling it can be fixed by wrapping postgres connection string in double quotes
Following works:
migrate -path db/migrations/ -database "postgres://user:password@localhost:5432/dbname?sslmode=disable" up
dont know wrapping in double quotes works in mac too since I dont have access to a mac
docker run
-d
-p 11211:11211
memcached:1.6.9-alpine
this should be included in readme if mem cached is still used. sqlc episode is providing hint about postgres docker container but misses memcached
Hello Mario,
I was trying to replicate your tutorial here and facing hard time running it.
I am able to run following:
DATABASE_URL=postgres://user:password@localhost:5432/dbname?sslmode=disable REDIS=localhost:6379 go run .
it throws following error
2022/12/16 16:36:39 Could not initialize Database connection failed to connect to `host=/private/tmp user=najam database=`: dial error (dial unix /private/tmp/.s.PGSQL.5432: connect: no such file or directory)
exit status 1
Any idea what could be wrong
Not an issue but rather a question:
How any other error besides io.EOF
would be handled here?
Thanks.
Originally posted by minghuirepo November 21, 2022
Hi Mario!
I met a problem when I tried to use present tool you mentioned in the README.md file.
I tried to install present using command:
$ go get -u github.com/golang/tools/cmd/present
I got error:
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.go install golang.org/x/tools/cmd/present@latest`
Then I used command:
$ go install golang.org/x/tools/cmd/present@latest
it was successfully installed.
Then I inputted command :
$ present
I got error:
Couldn't find gopresent files: no required module provides package golang.org/x/tools/cmd/present: go.mod file not found in current directory or any parent directory; see 'go help modules'
By default, gopresent locates the slide template files and associated
static content by looking for a "golang.org/x/tools/cmd/present" package
in your Go workspaces (GOPATH).
You may use the -base flag to specify an alternate location.
I am not familiar with present, can you please give me some advice?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.