- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NewReplacer (0.09 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) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue May 30 02:00:48 UTC 2023 - 7K bytes - Viewed (0) -
schema/naming.go
for _, initialism := range commonInitialisms { commonInitialismsForReplacer = append(commonInitialismsForReplacer, initialism, cases.Title(language.Und).String(initialism)) } commonInitialismsReplacer = strings.NewReplacer(commonInitialismsForReplacer...) } func (ns NamingStrategy) toDBName(name string) string { if name == "" { return "" } if ns.NameReplacer != nil { tmpName := ns.NameReplacer.Replace(name)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 5.3K 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{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 16 15:33:47 UTC 2024 - 12.7K 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 }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Aug 05 02:08:47 UTC 2024 - 9.6K 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)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 31.4K bytes - Viewed (0)