- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 250 for marshal (0.1 sec)
-
internal/store/queuestore.go
store.entries[key.String()] = time.Now().UnixNano() return } // write - writes an item to the directory. func (store *QueueStore[I]) write(key Key, item I) error { // Marshalls the item. eventData, err := json.Marshal(item) if err != nil { return err } return store.writeBytes(key, eventData) } // writeBytes - writes bytes to the directory.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
cmd/config-migrate.go
for _, cfgFile := range configFiles { if _, err = Load(cfgFile, cfg); err != nil { if !osIsNotExist(err) && !osIsPermission(err) { return nil, err } continue } data, _ = json.Marshal(cfg) break } if osIsPermission(err) { logger.Info("Older config found but is not readable %s, proceeding to read config from other places", err) } if osIsNotExist(err) || osIsPermission(err) || len(data) == 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
internal/s3select/simdj/record.go
b, err := tmp.MarshalJSON() if err != nil { return err } columnValue = string(b) case simdjson.TypeNone: break allElems default: return fmt.Errorf("cannot marshal unhandled type: %s", typ.String()) } csvRecord = append(csvRecord, columnValue) } w := csv.NewWriter(writer) w.Comma = opts.FieldDelimiter w.Quote = opts.Quote w.QuoteEscape = opts.QuoteEscape
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 5.4K bytes - Viewed (0) -
internal/logger/target/console/console.go
func (c *Target) Send(e interface{}) error { entry, ok := e.(log.Entry) if !ok { return fmt.Errorf("Uexpected log entry structure %#v", e) } if logger.IsJSON() { logJSON, err := json.Marshal(&entry) if err != nil { return err } fmt.Fprintln(c.output, string(logJSON)) return nil } if entry.Level == logger.EventKind { fmt.Fprintln(c.output, entry.Message) return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3.9K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0) -
internal/config/policy/plugin/config.go
if o == nil { return false, nil } // Access Management Plugin Input body := make(map[string]interface{}) body["input"] = args inputBytes, err := json.Marshal(body) if err != nil { return false, err } req, err := http.NewRequest(http.MethodPost, o.args.URL.String(), bytes.NewReader(inputBytes)) if err != nil { return false, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
istioctl/pkg/writer/pilot/status_test.go
icp := &xds.IstioControlPlaneInstance{ Component: "istiod", ID: istiodID, Info: istioversion.BuildInfo{ Version: "1.1", }, } identifier, _ := json.Marshal(icp) resources := make([]*anypb.Any, 0) for _, input := range configInputs { resources = append(resources, protoconv.MessageToAny(newXdsClientConfig(input))) } return &discovery.DiscoveryResponse{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Aug 14 19:36:19 UTC 2024 - 6.5K bytes - Viewed (0) -
tests/soft_delete_test.go
t.Errorf("Can't find permanently deleted record") } } func TestDeletedAtUnMarshal(t *testing.T) { expected := &gorm.Model{} b, _ := json.Marshal(expected) result := &gorm.Model{} _ = json.Unmarshal(b, result) if result.DeletedAt != expected.DeletedAt { t.Errorf("Failed, result.DeletedAt: %v is not same as expected.DeletedAt: %v", result.DeletedAt, expected.DeletedAt) } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 5.7K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
}, Spec: data, }, nil } // TODO(nmittler): Remove this once Pilot migrates to galley schema. func fromSchemaAndJSONMap(schema resource.Schema, data any) (config.Spec, error) { // Marshal to json bytes str, err := json.Marshal(data) if err != nil { return nil, err } out, err := schema.NewInstance() if err != nil { return nil, err } if err = config.ApplyJSONStrict(out, string(str)); err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 22:27:47 UTC 2024 - 14.3K bytes - Viewed (0) -
tests/embedded_struct_test.go
b, err := json.Marshal(c) return string(b[:]), err } func (c *Content) Scan(src interface{}) error { var value Content str, ok := src.(string) if !ok { byt, ok := src.([]byte) if !ok { return errors.New("Embedded.Scan byte assertion failed") } if err := json.Unmarshal(byt, &value); err != nil { return err } } else {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 7.3K bytes - Viewed (0)