Skip to content

dykyi-roman/dive-into-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dive into go

How to Write Go Code

The first what you need to do its organize right folder structure.

How its do it for you help doc How to Write Go Code

Example:

.
├── bin
├── pkg
└── src
    └── github.com
        └── dykyi-roman
            ├── dive-into-go
            │   ├── client
            │   │   └── Templates
            │   ├── main.go
            │   ├── server
            │   │   ├── Domain
            │   │   └── Infrastructure
            │   ├── storage
            │   └── tmp
            ├── docker-compose.yml
            ├── Dockerfile
            └── README.md

Code Example

  • Multiple File Upload

  • Work with DB

Documentation

Go in Visual Studio Code

Using the Go extension for Visual Studio Code, you get language features like IntelliSense, code navigation, symbol search, bracket matching, snippets and many more that will help you in Golang development.

Go application with Docker

Run from Dockerfile

Build image from our Docker file by executing this line at your terminal:

docker build . -t golang-image

After running this, a new docker image has been built with the name we provided (golang-image). Now we can run a container from it:

docker run -p 8080:3001 -it golang-image

Go to your browser and navigate to localhost:8080

Run from Docker-compose

docker-compose up

Go to your browser and navigate to localhost:8080

Go Fresh

Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file.

Go Debugging

Author

Dykyi Roman, e-mail: [email protected]

About

Dive into Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published