-
- Sempre buscar pela documentação oficial, este documento é um tutorial
que pode não te atender conforme tenha novas atualizações do processo de instalação. - As referências estão no final do documento.
- Sempre buscar pela documentação oficial, este documento é um tutorial
-
Windows 10
This file contains 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
[ | |
{"name": "nfe-to-pdf", "language": "typescript"}, | |
{"name": "image-to-text", "language": "typescript"}, | |
{"name": "files", "language": "typescript"}, | |
{"name": "calculator-st", "language": "typescript"}, | |
{"name": "sql", "language": "typescript"} | |
] |
This file contains 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
func openbrowser(url string) { | |
var err error | |
switch runtime.GOOS { | |
case "linux": | |
err = exec.Command("xdg-open", url).Start() | |
case "windows": | |
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
case "darwin": | |
err = exec.Command("open", url).Start() |
This file contains 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( | |
"log" | |
"net/url" | |
"net/http" | |
"net/http/httputil" | |
) | |
func main() { |
This file contains 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
OLD_MODULE_NAME="old-module-name" | |
read -p "Enter OLD_MODULE_NAME: " OLD_MODULE_NAME | |
NEW_MODULE_NAME="hello-host" | |
read -p "Enter NEW_MODULE_NAME: " NEW_MODULE_NAME | |
go mod edit -module $NEW_MODULE_NAME | |
find . -name '*.go' -print0 \ | |
| xargs -0 sed -i -e "s|${OLD_MODULE_NAME}|${NEW_MODULE_NAME}|" |
A very simple example of using a map of channels for pub/sub in go.
To run it go here http://play.golang.org/p/eXwppMgHR3
This file contains 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 ( | |
"bytes" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"mime/multipart" | |
"net/smtp" | |
"os" |
Moved to git repository: https://github.com/denji/golang-tls
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
This file contains 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
,_---~~~~~----._ | |
_,,_,*^____ _____``*g*\"*, | |
/ __/ /' ^. / \ ^@q f | |
[ @f | @)) | | @)) l 0 _/ | |
\`/ \~____ / __ \_____/ \ | |
| _l__l_ I | |
} [______] I | |
] | | | | | |
] ~ ~ | | |
| | |
NewerOlder