Documentation ¶
Index ¶
- Constants
- func CanScriptExecRightly(_filepath string) error
- func ConvertToUnixPath(_path string) string
- func GetCmdServiceImportPath(name string) (string, error)
- func GetCurrShellInterpreter() []string
- 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 GetScriptInterpreter(_filepath 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 ¶
const ( InterpreterBash = "bash" InterpreterSh = "sh" InterpreterCmd = "cmd" )
Variables ¶
This section is empty.
Functions ¶
func CanScriptExecRightly ¶
func ConvertToUnixPath ¶
func GetCmdServiceImportPath ¶
GetCmdServiceImportPath returns the import path of the cmd service (used by cmd/main.go).
func GetCurrShellInterpreter ¶
func GetCurrShellInterpreter() []string
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 GetScriptInterpreter ¶
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.