fix by golint

This commit is contained in:
Konstantin8105 2022-11-26 21:02:24 +03:00
parent 5b3c524e0a
commit 174a597b39
3 changed files with 4 additions and 9 deletions

View file

@ -36,12 +36,6 @@ jobs:
- name: Run staticcheck - name: Run staticcheck
run: staticcheck ./... run: staticcheck ./...
working-directory: raylib 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 - name: Run tests
run: go test -race -vet=off ./... run: go test -race -vet=off ./...
working-directory: raylib working-directory: raylib

View file

@ -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. raylib is highly inspired by Borland BGI graphics lib and by XNA framework.
@ -848,7 +848,7 @@ type MaterialMap struct {
Value float32 Value float32
} }
// Model, meshes, materials and animation data // Model is struct of model, meshes, materials and animation data
type Model struct { type Model struct {
// Local transform matrix // Local transform matrix
Transform Matrix Transform Matrix
@ -1195,6 +1195,7 @@ func newRenderTexture2DFromPointer(ptr unsafe.Pointer) RenderTexture2D {
return *(*RenderTexture2D)(ptr) return *(*RenderTexture2D)(ptr)
} }
// TraceLogLevel parameter of trace log message
type TraceLogLevel int type TraceLogLevel int
// Trace log level // Trace log level

View file

@ -60,7 +60,7 @@ func Vector2Negate(v Vector2) Vector2 {
return NewVector2(-v.X, -v.Y) return NewVector2(-v.X, -v.Y)
} }
// Vector2Divide - Divide vector by vector // Vector2DivideV - Divide vector by vector
func Vector2DivideV(v1, v2 Vector2) Vector2 { func Vector2DivideV(v1, v2 Vector2) Vector2 {
return NewVector2(v1.X/v2.X, v1.Y/v2.Y) return NewVector2(v1.X/v2.X, v1.Y/v2.Y)
} }