fix by golint
This commit is contained in:
parent
5b3c524e0a
commit
174a597b39
3 changed files with 4 additions and 9 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -36,12 +36,6 @@ jobs:
|
|||
- name: Run staticcheck
|
||||
run: staticcheck ./...
|
||||
working-directory: raylib
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
working-directory: raylib
|
||||
- name: Run golint
|
||||
run: golint ./...
|
||||
working-directory: raylib
|
||||
- name: Run tests
|
||||
run: go test -race -vet=off ./...
|
||||
working-directory: raylib
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Package raylib - Go bindings for raylib, a simple and easy-to-use library to learn videogames programming.
|
||||
Package rl - Go bindings for raylib, a simple and easy-to-use library to learn videogames programming.
|
||||
|
||||
raylib is highly inspired by Borland BGI graphics lib and by XNA framework.
|
||||
|
||||
|
@ -848,7 +848,7 @@ type MaterialMap struct {
|
|||
Value float32
|
||||
}
|
||||
|
||||
// Model, meshes, materials and animation data
|
||||
// Model is struct of model, meshes, materials and animation data
|
||||
type Model struct {
|
||||
// Local transform matrix
|
||||
Transform Matrix
|
||||
|
@ -1195,6 +1195,7 @@ func newRenderTexture2DFromPointer(ptr unsafe.Pointer) RenderTexture2D {
|
|||
return *(*RenderTexture2D)(ptr)
|
||||
}
|
||||
|
||||
// TraceLogLevel parameter of trace log message
|
||||
type TraceLogLevel int
|
||||
|
||||
// Trace log level
|
||||
|
|
|
@ -60,7 +60,7 @@ func Vector2Negate(v Vector2) Vector2 {
|
|||
return NewVector2(-v.X, -v.Y)
|
||||
}
|
||||
|
||||
// Vector2Divide - Divide vector by vector
|
||||
// Vector2DivideV - Divide vector by vector
|
||||
func Vector2DivideV(v1, v2 Vector2) Vector2 {
|
||||
return NewVector2(v1.X/v2.X, v1.Y/v2.Y)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue