From fc085b9be15b55f78afab3c2f2c91fedd3c3951c Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sun, 27 Aug 2023 11:31:03 +0200 Subject: [PATCH] init project --- .drone.yml | 14 ++++++++++++++ .gitignore | 1 + Makefile | 2 ++ base.go | 7 +++++++ go.mod | 3 +++ parser.go | 9 +++++++++ parser_test.go | 7 +++++++ 7 files changed, 43 insertions(+) create mode 100644 .drone.yml create mode 100644 Makefile create mode 100644 base.go create mode 100644 go.mod create mode 100644 parser.go create mode 100644 parser_test.go diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9761bf7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,14 @@ +--- +# Test building the code and docker image +kind: pipeline +type: docker +name: test-build + +steps: +- name: go-test + image: golang + commands: + - make test + depends_on: + +# TODO: publish doc diff --git a/.gitignore b/.gitignore index adf8f72..69c4728 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ # Go workspace file go.work +dist \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f995fe --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +test: + go test \ No newline at end of file diff --git a/base.go b/base.go new file mode 100644 index 0000000..c4982d2 --- /dev/null +++ b/base.go @@ -0,0 +1,7 @@ +package devicepath + +type DevicePathNode interface{} + +type DevicePath interface { + String() string +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b28cea0 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.faercol.me/faercol/device-path + +go 1.20 diff --git a/parser.go b/parser.go new file mode 100644 index 0000000..2265c91 --- /dev/null +++ b/parser.go @@ -0,0 +1,9 @@ +package devicepath + +func ParseNodeString(string) (DevicePathNode, error) { + return nil, nil +} + +func ParsePathString(string) (DevicePath, error) { + return nil, nil +} diff --git a/parser_test.go b/parser_test.go new file mode 100644 index 0000000..7a8aa38 --- /dev/null +++ b/parser_test.go @@ -0,0 +1,7 @@ +package devicepath_test + +import "testing" + +func TestTest(t *testing.T) { + +}