- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for NewReplacer (0.22 sec)
-
schema/naming_test.go
} } } func TestNamingStrategy(t *testing.T) { ns := NamingStrategy{ TablePrefix: "public.", SingularTable: true, NameReplacer: strings.NewReplacer("CID", "Cid"), } idxName := ns.IndexName("public.table", "name") if idxName != "idx_public_table_name" { t.Errorf("invalid index name generated, got %v", idxName) }
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Tue May 30 02:00:48 GMT 2023 - 7K bytes - Viewed (0) -
schema/naming.go
for _, initialism := range commonInitialisms { commonInitialismsForReplacer = append(commonInitialismsForReplacer, initialism, strings.Title(strings.ToLower(initialism))) } commonInitialismsReplacer = strings.NewReplacer(commonInitialismsForReplacer...) } func (ns NamingStrategy) toDBName(name string) string { if name == "" { return "" } if ns.NameReplacer != nil { tmpName := ns.NameReplacer.Replace(name)
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 5.2K bytes - Viewed (0) -
src/cmd/cgo/godefs.go
// expression passed through gofmt, which means composite literals and // (due to the printer possibly inserting newlines because of position // information) operators. var gofmtLineReplacer = strings.NewReplacer( // Want to replace \n without ; after everything from // https://golang.org/ref/spec#Operators_and_punctuation // EXCEPT ++ -- ) ] } "++\n", "++;", "--\n", "--;", "+\n", "+ ", "-\n", "- ",
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Sep 08 14:33:35 GMT 2022 - 4.5K bytes - Viewed (0) -
istioctl/cmd/root.go
viper.AllowEmptyEnv(true) // So we can say ISTIOCTL_CERT_DIR="" to suppress certs viper.SetConfigName(configName) viper.SetConfigType(configType) viper.AddConfigPath(configPath) viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_")) err := viper.ReadInConfig() // Ignore errors reading the configuration unless the file is explicitly customized if root.IstioConfig != defaultIstioctlConfig { return err } return nil }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Apr 11 20:51:30 GMT 2024 - 10K bytes - Viewed (0) -
cni/pkg/cmd/root.go
func GetCommand() *cobra.Command { return rootCmd } func init() { viper.AutomaticEnv() viper.AllowEmptyEnv(true) viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_")) logOptions.AttachCobraFlags(rootCmd) ctrlzOptions.AttachCobraFlags(rootCmd) rootCmd.AddCommand(version.CobraCommand()) rootCmd.AddCommand(collateral.CobraCommand(rootCmd, collateral.Metadata{
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Apr 11 21:42:29 GMT 2024 - 12.4K bytes - Viewed (0) -
src/cmd/api/main_test.go
// be read as if they said fs.FileInfo, since os.FileInfo is now an alias. // If there are many of these, we could do a more general solution, // but for now the replacer is fine. var aliasReplacer = strings.NewReplacer( "os.FileInfo", "fs.FileInfo", "os.FileMode", "fs.FileMode", "os.PathError", "fs.PathError", ) func fileFeatures(filename string, needApproval bool) []string { bs, err := os.ReadFile(filename)
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Tue Apr 09 20:48:51 GMT 2024 - 31.4K bytes - Viewed (0) -
api/go1.txt
pkg strings, func LastIndexFunc(string, func(int32) bool) int pkg strings, func Map(func(int32) int32, string) string pkg strings, func NewReader(string) *Reader pkg strings, func NewReplacer(...string) *Replacer pkg strings, func Repeat(string, int) string pkg strings, func Replace(string, string, string, int) string pkg strings, func Split(string, string) []string
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)