genutil

package
v0.0.0-...-eebe47f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package genutil was reference from https://github.com/protocolbuffers/protobuf-go/internal/strs/strings.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoInitialismCamelCase

func GoInitialismCamelCase(s string) string

GoInitialismCamelCase return initialism

func Initialism

func Initialism(s string) string

Initialism return initialsm string

func JSONCamelCase

func JSONCamelCase(s string) string

JSONCamelCase converts a snake_case identifier to a camelCase identifier, according to the protobuf JSON specification.

func JSONSnakeCase

func JSONSnakeCase(s string) string

JSONSnakeCase converts a camelCase identifier to a snake_case identifier, according to the protobuf JSON specification.

func NormalLizeGoName

func NormalLizeGoName(s string) string

NormalLizeGoName return normalize GoName

func Normalize

func Normalize(s string) string

Normalize return name in underscore

func NormalizeGoTypeName

func NormalizeGoTypeName(s string) string

NormalizeGoTypeName return Normalize for Go Type Name

func NormalizeTypeName

func NormalizeTypeName(s string) string

NormalizeTypeName return name of model type, which normalize eg:

users => User
categories => category

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL