Skip to content

Commit 0b8e24d

Browse files
committed
Add status badges to README.md
1 parent a2598b4 commit 0b8e24d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Tests](https://github.com/fyne-io/gl-js/actions/workflows/tests.yml/badge.svg)](https://github.com/fyne-io/gl-js/actions/workflows/tests.yml)
2+
[![Static Analysis](https://github.com/fyne-io/gl-js/actions/workflows/analysis.yml/badge.svg)](https://github.com/fyne-io/gl-js/actions/workflows/analysis.yml)
13
[![GoDoc](https://godoc.org/github.com/fyne-io/gl-js?status.svg)](https://godoc.org/github.com/fyne-io/gl-js)
24

35
# GL
@@ -16,22 +18,19 @@ This is a fork of golang.org/x/mobile/gl package with [CL 8793](https://go-revie
1618
merged in and Windows support added. This package is fully functional, but may eventually become superceded by
1719
the new x/mobile/gl plan. It will exist and be fully supported until it can be safely replaced by a better package.
1820

19-
Installation
20-
------------
21+
## Installation
2122

2223
```bash
23-
go get -u github.com/fyne-io/gl-js/...
24-
GOARCH=js go get -u -d github.com/fyne-io/gl-js/...
24+
go get github.com/fyne-io/gl-js
2525
```
2626

27-
Usage
28-
-----
27+
## Usage
2928

3029
This OpenGL binding has a ContextWatcher, which implements [glfw.ContextWatcher](https://godoc.org/github.com/goxjs/glfw#ContextWatcher)
3130
interface. Recommended usage is with github.com/fyne-io/glfw-js package, which accepts a ContextWatcher in its Init, and takes on the responsibility
3231
of notifying it when context is made current or detached.
3332

34-
```Go
33+
```go
3534
if err := glfw.Init(gl.ContextWatcher); err != nil {
3635
// Handle error.
3736
}

0 commit comments

Comments
 (0)