Welcome to new things

[Technical] [Electronic work] [Gadget] [Game] memo writing

Entries from 2020-04-01 to 1 month

AWS CLI configuration notes

It's been a while since I installed the AWS CLI. I see that it is now at version 2. Once you set it up, you don't have a chance to touch it and forget about it, so here is a memo on how to set it up for yourself. Basic Structure Set profil…

How to automatically change environment variables for each directory in Linux

The Docker Compose project name is the name of the directory where the docker-compose.yaml file is located. However, there are many cases where you may want to give a directory a different name. In such cases, you can specify the project n…

How to use local packages in Go language (Go Moludes)

I was writing a program in Golang and the program was getting long, so I decided to break it up into packages. configuration The directory structure is as follows. . |-- a | `-- a.go |-- b | `-- b.go `-- main.go procedure Square Needle Use…

Notes on what I got into with Go language (interface)

I started Golang. Golang, like C, has a simple syntax and data structure, but it also incorporates advanced concepts to increase productivity. And for that reason, Golang has some slightly tricky syntax. However, without knowing them, I ma…

Notes on things I got stuck on in Go language (value passing and pointer passing)

I started Golang. Golang uses pointers. Since Golang is historically a new language, I thought that I could just write code without being aware of pointers and it would work fine, but I was naive... The pointer itself is common, and if you…

Notes on things I got stuck on in Go language (slice, map, string)

I started Golang. Golang, like C, has a simple syntax and data structure, but it also incorporates advanced concepts to increase productivity. And for that reason, Golang has some slightly tricky syntax. However, without knowing them, I ma…

A note on something I got stuck on in Go language (putting a struct in a map causes a "cannot assign to struct field ..." error). error when you put a struct in the map)

I started Golang. When I started, I found that Golang is designed to be as simple as possible in its syntax and as simple in its code as possible. And for that reason, Golang has some slightly tricky syntax. However, without knowing them, …

Notes on things I got stuck on in Go language (classes and inheritance)

I started Golang. When I started, I found that Golang is designed to be as simple as possible in its syntax and as simple in its code as possible. And for that reason, Golang has some slightly tricky syntax. However, without knowing them, …

Note on things I got stuck on in Go language (no arrow operator in pointer)

I started Golang. When I started, I found that Golang is designed to be as simple as possible in its syntax and as simple in its code as possible. And for that reason, Golang has some slightly tricky syntax. However, without knowing them, …