Refactor the go_binding to binding (#13469)

### What problem does this PR solve?

As title.

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-03-09 15:52:31 +08:00
committed by GitHub
parent 25ace613b0
commit c732a1c8e0
3 changed files with 7 additions and 7 deletions

View File

@ -51,20 +51,20 @@ c_api_debug: $(BUILD_DIR)
# Test the Go bindings
test_go: c_api
cd go_bindings/example && go run main.go ../../$(BUILD_DIR) "这是一个测试文本。This is a test."
cd bindings/example && go run main.go ../../$(BUILD_DIR) "这是一个测试文本。This is a test."
# Run memory test
test_memory: c_api
cd go_bindings/example && go run memory_leak_check.go
cd bindings/example && go run memory_leak_check.go
# Run with valgrind
valgrind: c_api
cd go_bindings/example && bash run_valgrind.sh
cd bindings/example && bash run_valgrind.sh
# Run with AddressSanitizer
asan: c_api_asan
@echo "Running with AddressSanitizer..."
cd go_bindings/example && \
cd bindings/example && \
ASAN_OPTIONS=detect_leaks=1:print_stats=1:verbosity=0 \
go run memory_leak_check.go
@ -77,5 +77,5 @@ install: c_api
clean:
rm -rf $(BUILD_DIR)
rm -rf $(ASAN_BUILD_DIR)
rm -f go_bindings/example/valgrind.log
rm -f go_bindings/example/memory_test_bin
rm -f bindings/example/valgrind.log
rm -f bindings/example/memory_test_bin