Skip to content

Commit 8f445c5

Browse files
authored
Rename repository to example. (#60)
Closes #58.
1 parent 1d63ea1 commit 8f445c5

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Contributing to go-gl/examples
2-
==============================
1+
Contributing to go-gl/example
2+
=============================
33

44
We appreciate your help!
55

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# go-gl Examples [![Build Status](https://travis-ci.org/go-gl/examples.svg?branch=master)](https://travis-ci.org/go-gl/examples) [![GoDoc](https://godoc.org/github.com/go-gl/examples?status.svg)](https://godoc.org/github.com/go-gl/examples)
1+
# go-gl Examples [![Build Status](https://travis-ci.org/go-gl/example.svg?branch=master)](https://travis-ci.org/go-gl/example) [![GoDoc](https://godoc.org/github.com/go-gl/example?status.svg)](https://godoc.org/github.com/go-gl/example)
22

33
Basic Usage
44
-----------

gl21-cube/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Cube
44
Renders a textured spinning cube using GLFW 3 and OpenGL 2.1.
55

66
```
7-
go get -u github.com/go-gl/examples/gl21-cube
7+
go get -u github.com/go-gl/example/gl21-cube
88
```
99

1010
![Screenshot](Screenshot.png)

gl21-cube/cube.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func drawScene() {
206206

207207
// Set the working directory to the root of Go package, so that its assets can be accessed.
208208
func init() {
209-
dir, err := importPathToDir("github.com/go-gl/examples/gl21-cube")
209+
dir, err := importPathToDir("github.com/go-gl/example/gl21-cube")
210210
if err != nil {
211211
log.Fatalln("Unable to find Go package in your GOPATH, it's needed to load assets:", err)
212212
}

gl41core-cube/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Cube
44
Renders a textured spinning cube using GLFW 3 and OpenGL 4.1 core forward-compatible profile.
55

66
```
7-
go get -u github.com/go-gl/examples/gl41core-cube
7+
go get -u github.com/go-gl/example/gl41core-cube
88
```
99

1010
![Screenshot](Screenshot.png)

gl41core-cube/cube.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ var cubeVertices = []float32{
320320

321321
// Set the working directory to the root of Go package, so that its assets can be accessed.
322322
func init() {
323-
dir, err := importPathToDir("github.com/go-gl/examples/gl41core-cube")
323+
dir, err := importPathToDir("github.com/go-gl/example/gl41core-cube")
324324
if err != nil {
325325
log.Fatalln("Unable to find Go package in your GOPATH, it's needed to load assets:", err)
326326
}

0 commit comments

Comments
 (0)