Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: go: github.com/dghubble/sling
Package sling is a Go HTTP client library for creating and sending API requests.
Slings store HTTP Request properties to simplify sending requests and decoding
responses. Check the examples to learn how to compose a Sling into your API
client.
Use a Sling to set path, method, header, query, or body properties and create an
http.Request.
Use Path to set or extend the URL for created Requests. Extension means the
path will be resolved relative to the existing URL.
Use Get, Post, Put, Patch, Delete, or Head which are exactly the same as Path
except they set the HTTP method too.
Add or Set headers for requests created by a Sling.
Define url parameter structs (https://godoc.org/github.com/google/go-querystring/query).
Use QueryStruct to encode a struct as query parameters on requests.
Define JSON tagged structs (https://golang.org/pkg/encoding/json/).
Use BodyJSON to JSON encode a struct as the Body on requests.
Requests will include an "application/json" Content-Type header.
Define url tagged structs (https://godoc.org/github.com/google/go-querystring/query).
Use BodyForm to form url encode a struct as the Body on requests.
Requests will include an "application/x-www-form-urlencoded" Content-Type
header.
Use Body to set a plain io.Reader on requests created by a Sling.
Set a content type header, if desired (e.g. Set("Content-Type", "text/plain")).
Each Sling generates an http.Request (say with some path and query params)
each time Request() is called, based on its state. When creating
different slings, you may wish to extend an existing Sling to minimize
duplication (e.g. a common client).
Each Sling instance provides a New() method which creates an independent copy,
so setting properties on the child won't mutate the parent Sling.
Without the calls to base.New(), tweetShowSling and tweetPostSling would
reference the base Sling and POST to
"https://api.twitter.com/1.1/statuses/show.json/statuses/update.json", which
is undesired.
Recap: If you wish to extend a Sling, create a new child copy with New().
Define a JSON struct to decode a type from 2XX success responses. Use
ReceiveSuccess(successV interface{}) to send a new Request and decode the
response body into successV if it succeeds.
Most APIs return failure responses with JSON error details. To decode these,
define success and failure JSON structs. Use
Receive(successV, failureV interface{}) to send a new Request that will
automatically decode the response into the successV for 2XX responses or into
failureV for non-2XX responses.
Pass a nil successV or failureV argument to skip JSON decoding into that value.
5 versions
Latest release: over 1 year ago
795 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/dghubble/sling
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/dghubble%2Fsling
Dependent Repos 1,487
pokearu/cluster-api-provider-tinkerbell Fork of tinkerbell/cluster-api-provider-tinkerbell
Cluster API Infrastructure Provider for Tinkerbell- v1.3.0 go.sum
Size: 1.12 MB - Last synced: 10 months ago - Pushed: 11 months ago
crazy-max/goreleaser Fork of goreleaser/goreleaser
Deliver Go binaries as fast and easily as possible- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 16.8 MB - Last synced: 12 days ago - Pushed: 9 months ago
OpenFunction/cli
A CLI for interacting with OpenFunction.- v1.3.0 go.sum
Size: 431 KB - Last synced: 9 months ago - Pushed: over 1 year ago
wujunwei/harbor Fork of goharbor/harbor
An open source trusted cloud native registry project that stores, signs, and scans content.- v1.1.0 src/go.mod
- v1.1.0 src/go.sum
Size: 204 MB - Last synced: about 1 year ago - Pushed: almost 2 years ago
pulumiverse/pulumi-sentry
Pulumi provider for Sentry.io- v1.4.0 provider/go.mod
- v1.1.0 provider/go.sum
- v1.4.0 provider/go.sum
Size: 521 KB - Last synced: 22 days ago - Pushed: about 2 months ago
vocdoni/vocdoni-node
A set of libraries and tools for the Vocdoni decentralized backend infrastructure, the main ground of our universally verifiable, privacy-centric and scalable digital voting protocol- v1.3.0 go.sum
Size: 16.3 MB - Last synced: 19 days ago - Pushed: 19 days ago
detiber/cluster-api-provider-tinkerbell Fork of tinkerbell/cluster-api-provider-tinkerbell
Cluster API Infrastructure Provider for Tinkerbell- v1.3.0 go.sum
Size: 841 KB - Last synced: about 1 year ago - Pushed: over 1 year ago
gifhuppp/sourcegraph Fork of sourcegraph/sourcegraph
Universal code search (self-hosted)- v1.3.0 go.sum
Size: 639 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
i3oc9i/dapr Fork of dapr/dapr
Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 112 MB - Last synced: 10 months ago - Pushed: 10 months ago
Taction/dapr Fork of dapr/dapr
Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 115 MB - Last synced: 6 months ago - Pushed: 6 months ago
bcneng/candebot
Our lovely opinionated slack bot- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 260 KB - Last synced: about 1 month ago - Pushed: about 1 month ago
joestarzxh/dapr Fork of dapr/dapr
Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 104 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
craftypath/sops-operator
A Kubernetes operator for Mozilla SOPS- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 718 KB - Last synced: 3 months ago - Pushed: 4 months ago
beiwei30/dapr Fork of dapr/dapr
Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.- v1.3.0 go.mod
- v1.3.0 go.sum
- v1.3.0 tests/apps/perf/service_invocation_grpc/go.sum
Size: 115 MB - Last synced: 15 days ago - Pushed: 15 days ago
OlugbengaJJ/scorecard Fork of ossf/scorecard
Security Scorecards - Security health metrics for Open Source- v1.4.0 tools/go.mod
- v1.4.0 tools/go.sum
Size: 36.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
tzachibalata3012/teller Fork of tellerops/teller
A secrets management tool for developers built in Go - never leave your command line for secrets.- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 9.67 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
quantumpacket/scorecard Fork of ossf/scorecard
OSS Security Scorecards- v1.4.0 tools/go.mod
- v1.4.0 tools/go.sum
Size: 36 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
ristomcgehee/scorecard Fork of ossf/scorecard
Security Scorecards - Security health metrics for Open Source- v1.3.0 tools/go.mod
- v1.3.0 tools/go.sum
Size: 36 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
hassniazi/terraformer
terraformer light with all providers removed other than aws azure gcp ibm github and gitlab so you can use build -v and still get all the cool providers- v1.1.0 go.mod
- v1.1.0 go.sum
Size: 64.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
forgeutah/tweet_automated_bot
- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 142 KB - Last synced: 13 days ago - Pushed: 8 months ago
dje/darrineden.com
About Darrin Eden- v1.3.0 aws/functions/delete-tweets/go.sum
Size: 28.1 MB - Last synced: 22 days ago - Pushed: 22 days ago
Bughalla/goreleaser_goreleaser Fork of goreleaser/goreleaser
Deliver Go binaries as fast and easily as possible- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 15.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
OpenFunction/functions-framework-go
Go functions framework for OpenFunction- v1.3.0 go.sum
Size: 689 KB - Last synced: 26 days ago - Pushed: 6 months ago
PacktPublishing/Go-for-DevOps
Go for DevOps, published by Packt- v1.3.0 chapter/10/go.mod
- v1.3.0 chapter/10/go.sum
Size: 39.3 MB - Last synced: 22 days ago - Pushed: 4 months ago
Julien4218/temporal-newrelic-activity
- v1.4.0 tools/go.mod
- v1.4.0 tools/go.sum
Size: 203 KB - Last synced: 6 months ago - Pushed: 6 months ago
craftypath/nextver
Version increments within your CI/CD pipeline. Works well with SemVer and CalVer.- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 640 KB - Last synced: 10 months ago - Pushed: about 1 year ago
aiven/aiven-examples
Aiven "getting started" code examples- v1.3.0 kafka/producers/twitter/go.sum
Size: 34.2 MB - Last synced: about 2 months ago - Pushed: about 2 months ago
vfarcic/dapr-demo
- v1.3.0 publications/go.sum
- v1.3.0 speech-to-text/go.sum
- v1.3.0 tweet/go.sum
Size: 63.5 KB - Last synced: 9 months ago - Pushed: about 2 years ago
deptofdefense/awsutil
This is a set of utilities for managing AWS accounts- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 307 KB - Last synced: 4 months ago - Pushed: 8 months ago
tkeel-io/tkeel-monitor
- v1.3.0 go.sum
Size: 10 MB - Last synced: 9 months ago - Pushed: almost 2 years ago
codeformuenster/dkan-newest-dataset-notifier
Twitter Bot für neue Datensätze im Open Data Portal Münster- v1.3.0 go.sum
Size: 206 KB - Last synced: about 1 month ago - Pushed: about 1 month ago
kubegems/kubegems
Simplify your cloud native journey 🚀- v1.1.0 go.sum
Size: 9.1 MB - Last synced: about 2 months ago - Pushed: about 2 months ago
lemoony/snipkit
Snippet CLI manager for quickly accessing shell snippets without leaving the terminal.- v1.4.0 tools/go.mod
- v1.4.0 tools/go.sum
Size: 5.16 MB - Last synced: 6 days ago - Pushed: 7 days ago
uselagoon/remote-controller
A group of controllers for handling Lagoon builds and tasks in Kubernetes or Openshift- v1.1.0 go.sum
Size: 1.33 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
deptofdefense/awslogin
A utility to log in to AWS using aws-vault with secrets stored in 1Password- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 573 KB - Last synced: 10 months ago - Pushed: 10 months ago
tkeel-io/tkeel
Next-generation IoT open source platform.- v1.3.0 go.sum
Size: 3.36 MB - Last synced: 3 months ago - Pushed: over 1 year ago
zachfi/openweathermap_exporter
A Prometheus exporter for reading weather forecast data from Open Weather Map.- v1.3.0 tools/go.sum
Size: 6.29 MB - Last synced: 4 months ago - Pushed: 8 months ago
dapr/dashboard
General purpose dashboard for Dapr- v1.3.0 go.sum
Size: 38.2 MB - Last synced: 15 days ago - Pushed: 2 months ago
andrewmarklloyd/pi-sensor
- v1.3.0 go.sum
Size: 11.7 MB - Last synced: 19 days ago - Pushed: 19 days ago
kha7iq/pingme
PingMe is a CLI which provides the ability to send messages or alerts to multiple messaging platforms & email.- v1.3.0 go.sum
Size: 6.91 MB - Last synced: 20 minutes ago - Pushed: 25 days ago
okashoi/isucon-practice-20200830
- eb56e89ac5088bebb12eef3cb4b293300f43608b webapp/go/src/isubata/vendor/github.com/labstack/echo-contrib/Gopkg.lock
Size: 39.2 MB - Last synced: 20 days ago - Pushed: over 3 years ago
ossf/scorecard
OpenSSF Scorecard - Security health metrics for Open Source- v1.4.0 tools/go.mod
- v1.4.0 tools/go.sum
Size: 191 MB - Last synced: 30 days ago - Pushed: about 1 month ago
axsh/wakame-vdc
Datacenter Hypervisor - Open Source Cloud Computing / IaaS- 52e88a7b75a5db3b49f8911f16d49d9b7b67adc5 client/go-wakamevdc/vendor/vendor.json
Size: 27.2 MB - Last synced: 16 days ago - Pushed: about 7 years ago
cnfatal/kubegems Fork of kubegems/kubegems
KubeGems Core Service- v1.1.0 go.sum
Size: 8.09 MB - Last synced: 11 months ago - Pushed: 11 months ago
hdget/hdsdk
robust, extensible and enterprise ready sdk to help quickly develop backend services- v1.3.0 go.sum
Size: 709 KB - Last synced: about 1 month ago - Pushed: about 1 month ago
OctopusDeployLabs/terraform-provider-octopusdeploy
Terraform Provider for Octopus Deploy :octopus:- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 21 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
bootjp/nicopetter
nicopetter(ニコニコ大百科 更新お知らせbot)- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 386 KB - Last synced: 9 days ago - Pushed: 9 days ago
nikoksr/notify
A dead simple Go library for sending notifications to various messaging services.- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 1.82 MB - Last synced: 3 days ago - Pushed: 3 days ago
dghubble/go-twitter 📦
Go Twitter REST and Streaming API v1.1- v1.3.0 examples/go.mod
- v1.3.0 examples/go.sum
- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 170 KB - Last synced: 12 days ago - Pushed: over 1 year ago
eksctl-io/eksctl
The official CLI for Amazon EKS- v1.4.0 go.mod
- v1.4.0 go.sum
Size: 58.3 MB - Last synced: 14 days ago - Pushed: 14 days ago
nonotest/instamoodapp
Filter social medias based on what you want to see or what is trending- v1.3.0 server/go/feedme/go.mod
- v1.3.0 server/go/feedme/go.sum
Size: 160 MB - Last synced: about 1 year ago - Pushed: over 1 year ago
zachfi/weigh
A small cli utility to sort directory contents by size.- v1.4.0 tools/go.sum
Size: 6.32 MB - Last synced: about 2 months ago - Pushed: 7 months ago
tkeel-io/cli
Command-line tools for tKeel.- v1.3.0 go.sum
Size: 745 KB - Last synced: 10 months ago - Pushed: over 1 year ago
goharbor/acceleration-service
Provides a general service to support image acceleration based on kinds of accelerator like Nydus and eStargz etc.- v1.1.0 go.sum
Size: 1010 KB - Last synced: 5 days ago - Pushed: 5 days ago
nunesvn/fleet Fork of fleetdm/fleet
Open source device management, built on osquery.- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 203 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
vocdoni/blind-csp
Secp256k1 blind signature certification authority boilerplate- v1.3.0 go.sum
Size: 35.8 MB - Last synced: 19 days ago - Pushed: 20 days ago
quanxiang-cloud/faas
Function as a service- v1.3.0 go.sum
Size: 319 KB - Last synced: about 2 months ago - Pushed: almost 2 years ago
davidsbond/arrebato 📦
A gRPC based pub/sub messaging system- v1.4.0 tools/go.mod
- v1.4.0 tools/go.sum
Size: 1.26 MB - Last synced: 12 days ago - Pushed: almost 2 years ago
tellerops/teller
Cloud native secrets management for developers - never leave your command line for secrets.- v1.3.0 go.mod
- v1.3.0 go.sum
Size: 13.1 MB - Last synced: about 19 hours ago - Pushed: 1 day ago
topicuskeyhub/go-keyhub
Golang SDK for Topicus KeyHub- v1.4.0 example/go.sum
Size: 3.73 MB - Last synced: about 1 month ago - Pushed: 7 months ago