GithubHelp home page GithubHelp logo

mariocarrion / videos Goto Github PK

View Code? Open in Web Editor NEW
115.0 7.0 49.0 22.68 MB

Slides and examples used for my training videos

Home Page: https://youtube.com/MarioCarrion

License: MIT License

Go 82.16% Ruby 0.37% Vim Script 0.48% Lua 16.42% Makefile 0.20% Shell 0.37%
youtube training golang training-videos

videos's Introduction

Videos

Slides, source code and examples used for the training videos I recorded, join the fun at https://youtube.com/@MarioCarrion

Install

go install golang.org/x/tools/cmd/present

This will install the binary in your GOBIN then run it using:

present

videos's People

Contributors

dpsigor avatar mariocarrion avatar najamsk avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

videos's Issues

zsh and migrate command

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

readme missing running memcached docker

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

Postgresql not getting connected with golang - Golang Microservices: Caching with Redis

Hello Mario,

I was trying to replicate your tutorial here and facing hard time running it.

I am able to run following:

  • postgresql running in docker with your command so localhost, user, password and db are same
  • able to run migrate command so schema is there.
  • also able to connect to this instance and schema using table plus gui tool on mac
    when i run following command
    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

Go tool present not working

Discussed in #9

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.