pt-br/

directory
v0.0.0-...-d87ffed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2017 License: BSD-3-Clause

README

Construindo Aplicações Web em Golang

Sobre

Por ser interessado em desenvolver aplicações para Web, utilizei meu tempo livre para escrever este livro em código aberto. Isso não significa que tenho uma ótima habilidade em desenvolver aplicações Web, apenas queria compartilhar o que fiz desenvolvendo aplicações Web em Go.

Este livro é destinado para:

  • Quem costuma trabalhar com PHP/Python/Ruby e deseja aprender a criar aplicações Web em Go.
  • Quem costuma trabalhar com C/C++ e deseja aprender como a Web funciona.

Eu acredito que o propósito é compartilhar aprendizado com outras pessoas. Estou feliz por compartilhar tudo que aprendi e ensinar.

Doações

AliPay: alipay

English Donate:donate

Comunidade

QQ群:386056972

BBS:http://golanghome.com/

Reconhecimento
License

This book is licensed under the CC BY-SA 3.0 License, the code is licensed under a BSD 3-Clause License, unless otherwise specified.

Directories

Path Synopsis
code
src/apps/ch.1.2 command
Código de exemplo para o Capítulo 1.2 do "Build Web Application with Golang" Propósito: Execute este arquivo para verificar se o seu workspace está corretamente configurado.
Código de exemplo para o Capítulo 1.2 do "Build Web Application with Golang" Propósito: Execute este arquivo para verificar se o seu workspace está corretamente configurado.
src/apps/ch.2.1 command
Código de exemplo para o Capítulo 2.1 do "Build Web Application with Golang" Propósito: Exemplo de Hello world demonstrando suporte para UTF-8.
Código de exemplo para o Capítulo 2.1 do "Build Web Application with Golang" Propósito: Exemplo de Hello world demonstrando suporte para UTF-8.
src/apps/ch.2.2 command
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Revisar os conceitos de atribuição e manipulação de tipos de dados básicos.
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Revisar os conceitos de atribuição e manipulação de tipos de dados básicos.
src/apps/ch.2.2/what_is_wrong_with_this command
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Tente corrigir este programa.
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Tente corrigir este programa.
src/apps/ch.2.3 command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra alguns exemplos de if, else, switch, loops e defer.
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra alguns exemplos de if, else, switch, loops e defer.
src/apps/ch.2.3/basic_functions command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: Criando uma função básica
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: Criando uma função básica
src/apps/ch.2.3/hidden_print_methods command
A partir do Google go 1.1.2, `println()` e `print()` são funções ocultas incluídas no pacote de tempo de execução.
A partir do Google go 1.1.2, `println()` e `print()` são funções ocultas incluídas no pacote de tempo de execução.
src/apps/ch.2.3/import_packages command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra diferentes formas de importar um pacote.
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra diferentes formas de importar um pacote.
src/apps/ch.2.3/panic_and_recover command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostrar como usar `panic()` e `recover()`
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostrar como usar `panic()` e `recover()`
src/apps/ch.2.3/pass_by_value_and_pointer command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como passar uma variável por valor e por referência
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como passar uma variável por valor e por referência
src/apps/ch.2.3/type_function command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como definir um tipo de função
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como definir um tipo de função
src/apps/ch.2.3/variadic_functions command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como retornar múltiplos valores de uma função
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como retornar múltiplos valores de uma função
src/apps/ch.2.4 command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar formas diferentes de criar uma estrutura
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar formas diferentes de criar uma estrutura
src/apps/ch.2.4/compare_age command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar como utilizar estruturas em Go.
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar como utilizar estruturas em Go.
src/apps/ch.2.4/embedded_structs command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Exemplo de campos incorporados
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Exemplo de campos incorporados
src/apps/ch.2.4/embedded_structs2 command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Outro exemplo de campos incorporados
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Outro exemplo de campos incorporados
src/apps/ch.2.4/embedded_structs_with_name_conflict command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostra um conflito de nomes com um campo incorporado
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostra um conflito de nomes com um campo incorporado
src/apps/ch.2.5/attach_methods_to_struct command
Example code from Chapter 2.5 Attach method to struct.
Example code from Chapter 2.5 Attach method to struct.
src/apps/ch.2.7/buffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
src/apps/ch.2.7/goroutine command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
src/apps/ch.2.7/range_and_close_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
src/apps/ch.2.7/select_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
src/apps/ch.2.7/timeout command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
src/apps/ch.2.7/unbuffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
src/apps/ch.3.2 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
src/apps/ch.3.4 command
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
src/apps/ch.4.1 command
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
src/apps/ch.4.2 command
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
src/apps/ch.4.2/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
src/apps/ch.4.3 command
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
src/apps/ch.4.4 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
src/apps/ch.4.4/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
src/apps/ch.4.4/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
src/apps/ch.4.5 command
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
src/apps/ch.4.5/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
src/apps/ch.4.5/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
src/apps/ch.5.2 command
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
src/apps/ch.5.3 command
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
src/apps/ch.5.4 command
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
src/apps/ch.5.5 command
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
src/apps/ch.5.6/mongodb command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
src/apps/ch.5.6/redis command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
src/mymath
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL