A
A
Alexander Vladimirovich2019-01-10 15:08:12
go
Alexander Vladimirovich, 2019-01-10 15:08:12

How to correctly name files whose names consist of several words?

What is correct to use as a separator in the names of files and directories, if there is more than one word in the name, "-" or "_" or even write in one word?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasily Melnikov, 2019-01-10
@BacCM

If you look at "native" packages, and not ported from somewhere. That is with lowercase characters separating words through underscores. Although sometimes there is a hyphen, but very rarely.

V
Vladislav, 2019-01-10
@ghostiam

If you look at existing projects in Go, everyone uses what they want, since there is no naming standard.
For example:
Names separated by underscores: GORM
Names written together: Docker(Moby)
directories (1) (2)
files

P
Petro Kvartsianyi, 2019-01-23
@Patrick12

camelCase

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question