Skip to content

Commit

Permalink
Clean up code for proper structure
Browse files Browse the repository at this point in the history
Much of the code had legacy structure, this is the first commit
for ordering the package
  • Loading branch information
ohlsont committed Oct 31, 2018
1 parent 4c83dff commit 40a3eb1
Show file tree
Hide file tree
Showing 14 changed files with 226 additions and 226 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.11-stretch-node
working_directory: /go/src/github.com/einride/xsens-go
steps:
- checkout
- run: make
27 changes: 0 additions & 27 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
branch = "master"
name = "github.com/jacobsa/go-serial"
Expand Down
47 changes: 0 additions & 47 deletions IMUstate.go

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Einride AB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.PHONY: all
all: lint test-go

include build/rules.mk
build/rules.mk:
git submodule update --init
Expand All @@ -7,3 +10,9 @@ lint: lint-vendor lint-go lint-markdown
.PHONY: test-go
test-go: vendor
go test -race -cover ./...

.PHONY: doc
doc:
godoc -http=:6060 &
xdg-open http://localhost:6060/pkg/github.com/einride/xsens-go

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Xsens Go

A Go USB client for communicating with a Xsens MTI-710.

## Usage

```bash
go get -u github.com/einride/xsens-go
```

## Example

see /cmd/xsens

## Run

`make`
Loading

0 comments on commit 40a3eb1

Please sign in to comment.