Documentation ¶
Index ¶
- func GetCmdServiceImportPath(name string) (string, error)
- func GetDockerFileProjectPath() (string, error)
- func GetEndpointImportPath(name string) (string, error)
- func GetGOPATH() string
- func GetGRPCTransportImportPath(name string) (string, error)
- func GetHTTPTransportImportPath(name string) (string, error)
- func GetPbImportPath(name, pathByFlag string) (string, error)
- func GetServiceImportPath(name string) (string, error)
- func GoImportsSource(path string, s string) (string, error)
- func IsExist(path string) bool
- func ToCamelCase(s string) string
- func ToLowerFirstCamelCase(s string) string
- func ToLowerSnakeCase(s string) string
- func ToUpperFirst(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmdServiceImportPath ¶
GetCmdServiceImportPath returns the import path of the cmd service (used by cmd/main.go).
func GetDockerFileProjectPath ¶
GetDockerFileProjectPath returns the path of the project.
func GetEndpointImportPath ¶
GetEndpointImportPath returns the import path of the service endpoints.
func GetGRPCTransportImportPath ¶
GetGRPCTransportImportPath returns the import path of the service grpc transport.
func GetHTTPTransportImportPath ¶
GetHTTPTransportImportPath returns the import path of the service http transport.
func GetPbImportPath ¶
GetPbImportPath returns the import path of the generated service grpc pb.
func GetServiceImportPath ¶
GetServiceImportPath returns the import path of the service interface.
func GoImportsSource ¶
GoImportsSource is used to format and optimize imports the given source.
func ToCamelCase ¶
ToCamelCase the given string in camelcase format.
func ToLowerFirstCamelCase ¶
ToLowerFirstCamelCase returns the given string in camelcase formatted string but with the first letter being lowercase.
func ToLowerSnakeCase ¶
ToLowerSnakeCase the given string in snake-case format.
func ToUpperFirst ¶
ToUpperFirst returns the given string with the first letter being uppercase.
Types ¶
This section is empty.