Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
OCamlPro
osh
Commits
5067d8ce
Unverified
Commit
5067d8ce
authored
Oct 07, 2021
by
zapashcanon
Browse files
add example
parent
2399ea4d
Pipeline
#15891
passed with stages
in 7 minutes and 20 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
example/dune
example/dune
+3
-0
example/example.ml
example/example.ml
+12
-0
No files found.
example/dune
0 → 100644
View file @
5067d8ce
(executable
(name example)
(libraries ezcurl))
example/example.ml
0 → 100644
View file @
5067d8ce
let
instance
=
"https://osh.ocamlpro.com"
let
badge
=
"/badge?label=build&color=green&status=passing"
let
url
=
Format
.
sprintf
"%s%s"
instance
badge
let
()
=
match
Ezcurl
.
get
~
url
()
with
|
Error
(
_code
,
msg
)
->
Format
.
eprintf
"error: %s@."
msg
;
exit
1
|
Ok
badge
->
Format
.
printf
"Here's your badge:@.%s@."
badge
.
body
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment