Package Usage: go: github.com/stretchr/objx
Package objx provides utilities for dealing with maps, slices, JSON and other data.
Objx provides the `objx.Map` type, which is a `map[string]interface{}` that exposes
a powerful `Get` method (among others) that allows you to easily and quickly get
access to data within the map, without having to worry too much about type assertions,
missing data, default values etc.
Objx uses a predictable pattern to make access data from within `map[string]interface{}` easy.
Call one of the `objx.` functions to create your `objx.Map` to get going:
NOTE: Any methods or functions with the `Must` prefix will panic if something goes wrong,
the rest will be optimistic and try to figure things out without panicking.
Use `Get` to access the value you're interested in. You can use dot and array
notation too:
Once you have sought the `Value` you're interested in, you can use the `Is*` methods to determine its type.
Or you can just assume the type, and use one of the strong type methods to extract the real value:
If there's no value there (or if it's the wrong type) then a default value will be returned,
or you can be explicit about the default value.
If you're dealing with a slice of data as a value, Objx provides many useful methods for iterating,
manipulating and selecting that data. You can find out more by exploring the index below.
A simple example of how to use Objx:
Since `objx.Map` is a `map[string]interface{}` you can treat it as such.
For example, to `range` the data, do what you would expect:
8 versions
Latest release: almost 2 years ago
20,211 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/stretchr/objx
Dependent Repos 85
signaux-faibles/datapi
datAPI - API des applications web signaux-faiblesSize: 43.1 MB - Last synced: about 10 hours ago - Pushed: about 15 hours ago

signaux-faibles/prepare-import
📥 Scripts de préparation à l'importation de données dans le processus d'intégrationSize: 276 KB - Last synced: about 10 hours ago - Pushed: 4 months ago



radiofrance/helm-chart-sonarqube Fork of SonarSource/helm-chart-sonarqube
Size: 2.99 MB - Last synced: 7 months ago - Pushed: 9 months ago

pocs/wso2iam
Proof of concept of using WSO2 API Manager as Identity and Access Management solutionLast synced: 7 months ago
web-et-numerique/factory/llle_project/cozy-stack
Fork of cozy-stack https://github.com/cozy/cozy-stackLast synced: 7 months ago

gestion-des-assemblees/elections
Application de recensement des votes d'une élection et affichage de ses résultats.Last synced: 7 months ago
systemes-dinformation/project-template/sdk-go
Simple Developpement Kit for GO with Gorm ORM for backend and Bulma for frontend.Last synced: 7 months ago

go-hep/hep
hep is the mono repository holding all of go-hep.org/x/hep packages and toolsLast synced: 7 months ago
igrida/prometheus-oar-exporter
Exporter Prometheus pour les métrics du serveur OARLast synced: 7 months ago