Files
goproxy/examples/plugin/plugins/build.sh
DarkiT 7affdc79c6 update: 2023-03-15
1. 添加URL重写器
2. 添加插件系统
2025-03-14 00:30:20 +08:00

22 lines
412 B
Bash

#!/bin/bash
# 编译插件
go build -buildmode=plugin -o stats.so ./stats/stats.go
# 检查编译结果
if [ $? -eq 0 ]; then
echo "插件编译成功: stats.so"
else
echo "插件编译失败"
exit 1
fi
go build -buildmode=plugin -o logger.so ./logger/logger.go
# 检查编译结果
if [ $? -eq 0 ]; then
echo "插件编译成功: logger.so"
else
echo "插件编译失败"
exit 1
fi