diff --git a/bindings/go/.gitignore b/bindings/go/.gitignore old mode 100755 new mode 100644 diff --git a/bindings/go/LICENSE b/bindings/go/LICENSE old mode 100755 new mode 100644 diff --git a/bindings/go/Makefile b/bindings/go/Makefile old mode 100755 new mode 100644 index 3374212..420981a --- a/bindings/go/Makefile +++ b/bindings/go/Makefile @@ -11,8 +11,7 @@ whisper: mkdir @${CMAKE} -S ../.. -B ${BUILD_DIR} -D BUILD_SHARED_LIBS=off -D WHISPER_NO_AVX2=on @${CMAKE} --build ${BUILD_DIR} --target whisper -test: model-small whisper - @go mod tidy +test: model-small whisper modtidy @go test -v . @go test -v ./pkg/whisper/... @@ -21,7 +20,7 @@ examples: $(EXAMPLES_DIR) model-small: mkdir examples/go-model-download @${BUILD_DIR}/go-model-download -out models small.en -$(EXAMPLES_DIR): mkdir whisper +$(EXAMPLES_DIR): mkdir whisper modtidy @echo Build example $(notdir $@) @go build ${BUILD_FLAGS} -o ${BUILD_DIR}/$(notdir $@) ./$@ @@ -31,8 +30,10 @@ mkdir: @echo Mkdir ${MODELS_DIR} @install -d ${MODELS_DIR} +modtidy: + @go mod tidy + clean: @echo Clean @rm -fr $(BUILD_DIR) - @go mod tidy @go clean diff --git a/bindings/go/README.md b/bindings/go/README.md old mode 100755 new mode 100644 diff --git a/bindings/go/examples/go-model-download/context.go b/bindings/go/examples/go-model-download/context.go old mode 100755 new mode 100644 diff --git a/bindings/go/examples/go-model-download/main.go b/bindings/go/examples/go-model-download/main.go old mode 100755 new mode 100644 diff --git a/bindings/go/examples/go-whisper/flags.go b/bindings/go/examples/go-whisper/flags.go old mode 100755 new mode 100644 diff --git a/bindings/go/examples/go-whisper/main.go b/bindings/go/examples/go-whisper/main.go old mode 100755 new mode 100644 diff --git a/bindings/go/examples/go-whisper/process.go b/bindings/go/examples/go-whisper/process.go old mode 100755 new mode 100644 diff --git a/bindings/go/go.mod b/bindings/go/go.mod old mode 100755 new mode 100644 diff --git a/bindings/go/pkg/whisper/consts.go b/bindings/go/pkg/whisper/consts.go old mode 100755 new mode 100644 diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go old mode 100755 new mode 100644 diff --git a/bindings/go/pkg/whisper/context_test.go b/bindings/go/pkg/whisper/context_test.go old mode 100755 new mode 100644 diff --git a/bindings/go/pkg/whisper/doc.go b/bindings/go/pkg/whisper/doc.go old mode 100755 new mode 100644 diff --git a/bindings/go/pkg/whisper/interface.go b/bindings/go/pkg/whisper/interface.go old mode 100755 new mode 100644 diff --git a/bindings/go/pkg/whisper/model.go b/bindings/go/pkg/whisper/model.go old mode 100755 new mode 100644 diff --git a/bindings/go/samples/jfk.wav b/bindings/go/samples/jfk.wav old mode 100755 new mode 100644