While Go has conventions for naming packages, are there any for file names? Do you follow the Java practice of putting a single struct in a single file, naming the file after the struct?
Go does indeed have some guidelines for file naming:
For more details, refer to the Go documentation: https://pkg.go.dev/cmd/go
The above is the detailed content of Go File Naming Conventions: Best Practices for File Names?. For more information, please follow other related articles on the PHP Chinese website!