Avatar ·

File naming conventions in Go: snake_case or something else?

Hello! I recently started learning Go, coming from Python, and I'm a bit confused about file naming. In Python, I'm used to snake_case for modules and files, but in Go, judging by the standard library, snake_case with underscores is used, and I see that some files are named, for example, `http.go`, `transport.go`, `server.go`. But I've also encountered files like `myHandler.go`, `MyService.go`, or even `user_repository.go` in open-source projects. What's the correct way? Here's an example of my project where I'm trying to organize the code: ```go // My project: simple REST API for notes // File: main.go package main import "fmt" func main() { fmt.Println("Hello, Notes API!") } // File: handlers.go package main // Handler for creating a note func CreateNoteHandler() { // ..