Skip to content

Commit 0ce1b6b

Browse files
committed
Init package
1 parent e85957d commit 0ce1b6b

File tree

7 files changed

+137
-1
lines changed

7 files changed

+137
-1
lines changed

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: Go ${{ matrix.go }}
11+
strategy:
12+
matrix:
13+
go:
14+
- '1.24'
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Go ${{ matrix.go }}
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: ${{ matrix.go }}
24+
25+
- name: Install tools
26+
run: |
27+
go install honnef.co/go/tools/cmd/staticcheck@latest
28+
go install golang.org/x/vuln/cmd/govulncheck@latest
29+
30+
- name: Vet
31+
run: go vet ./...
32+
33+
- name: Lint
34+
run: staticcheck ./...
35+
36+
- name: Security
37+
run: govulncheck ./...
38+
39+
- name: Build
40+
run: go build -v ./...
41+
42+
- name: Test
43+
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
9+
## [Unreleased](https://github.com/gravitton/geometry/compare/v1.0.0...master)

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The MIT License (MIT)
2+
3+
Copyright (c) 2018 Tomáš Novotný <tomas.novotny.301@gmail.com>
4+
5+
> Permission is hereby granted, free of charge, to any person obtaining a copy
6+
> of this software and associated documentation files (the "Software"), to deal
7+
> in the Software without restriction, including without limitation the rights
8+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
> copies of the Software, and to permit persons to whom the Software is
10+
> furnished to do so, subject to the following conditions:
11+
>
12+
> The above copyright notice and this permission notice shall be included in
13+
> all copies or substantial portions of the Software.
14+
>
15+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
> THE SOFTWARE.

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,60 @@
1-
# geometry
1+
# Geometry
2+
3+
[![Latest Stable Version][ico-release]][link-release]
4+
[![Build Status][ico-workflow]][link-workflow]
5+
[![Coverage Status][ico-coverage]][link-coverage]
6+
[![Quality Score][ico-code-quality]][link-code-quality]
7+
[![Go Report Card][ico-go-report-card]][link-go-report-card]
8+
[![Go Dev Reference][ico-go-dev-reference]][link-go-dev-reference]
9+
[![Software License][ico-license]][link-licence]
10+
11+
2D geometry library for game development.
12+
13+
14+
## Installation
15+
16+
```bash
17+
go get github.com/gravitton/geometry
18+
```
19+
20+
21+
## Usage
22+
23+
```go
24+
package main
25+
26+
import (
27+
"github.com/gravitton/geometry"
28+
)
29+
```
30+
31+
32+
## Credits
33+
34+
- [Tomáš Novotný](https://github.com/tomas-novotny)
35+
- [All Contributors][link-contributors]
36+
37+
38+
## License
39+
40+
The MIT License (MIT). Please see [License File][link-licence] for more information.
41+
42+
43+
[ico-license]: https://img.shields.io/github/license/gravitton/geometry.svg?style=flat-square&colorB=blue
44+
[ico-workflow]: https://img.shields.io/github/actions/workflow/status/gravitton/geometry/main.yml?branch=main&style=flat-square
45+
[ico-release]: https://img.shields.io/github/v/release/gravitton/geometry?style=flat-square&colorB=blue
46+
[ico-go-dev-reference]: https://img.shields.io/badge/go.dev-reference-blue?style=flat-square
47+
[ico-go-report-card]: https://goreportcard.com/badge/github.com/gravitton/geometry?style=flat-square
48+
[ico-coverage]: https://img.shields.io/scrutinizer/coverage/g/gravitton/geometry/main.svg?style=flat-square
49+
[ico-code-quality]: https://img.shields.io/scrutinizer/g/gravitton/geometry.svg?style=flat-square
50+
51+
[link-author]: https://github.com/gravitton
52+
[link-release]: https://github.com/gravitton/geometry/releases
53+
[link-contributors]: https://github.com/gravitton/geometry/contributors
54+
[link-licence]: ./LICENSE.md
55+
[link-changelog]: ./CHANGELOG.md
56+
[link-workflow]: https://github.com/gravitton/geometry/actions
57+
[link-go-dev-reference]: https://pkg.go.dev/github.com/gravitton/geometry
58+
[link-go-report-card]: https://goreportcard.com/report/github.com/gravitton/geometry
59+
[link-coverage]: https://scrutinizer-ci.com/g/gravitton/geometry/code-structure
60+
[link-code-quality]: https://scrutinizer-ci.com/g/gravitton/geometry

doc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package geometry

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/gravitton/geometry
2+
3+
go 1.24

go.sum

Whitespace-only changes.

0 commit comments

Comments
 (0)