Commit 464dc2bf authored by vicotor's avatar vicotor

udpate module

parent 7eeecb16
Pipeline #806 failed with stages
.idea
.vscode
build
.PHONY: default caddyproxy
GOBIN = $(shell pwd)/build/bin
GO ?= latest
GOFILES_NOVENDOR := $(shell go list -f "{{.Dir}}" ./...)
default: caddyproxy
all: caddyproxy
#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o=${GOBIN}/$@ -gcflags "all=-N -l" .
caddyproxy:
go build -o=${GOBIN}/$@ -gcflags "all=-N -l" .
@echo "Done building."
clean:
rm -fr build/*
......@@ -2,10 +2,10 @@ package caddy
import (
"bytes"
"caddyproxy/types"
"caddyproxy/utils"
"fmt"
log "github.com/sirupsen/logrus"
"github.com/xueqianlu/caddyproxy/types"
"github.com/xueqianlu/caddyproxy/utils"
"io/ioutil"
"net/http"
"path/filepath"
......
package root
import (
"caddyproxy/command/run"
"fmt"
"github.com/spf13/cobra"
"github.com/xueqianlu/caddyproxy/command/run"
"os"
)
......
package run
import (
"caddyproxy/openapi"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/xueqianlu/caddyproxy/openapi"
"os"
)
......
module github.com/caddyproxy
module github.com/xueqianlu/caddyproxy
go 1.21
......
package main
import "caddyproxy/command/root"
import "github.com/xueqianlu/caddyproxy/command/root"
func main() {
root.NewRootCommand().Execute()
......
package openapi
import (
"caddyproxy/caddy"
"caddyproxy/types"
"caddyproxy/utils"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
log "github.com/sirupsen/logrus"
"github.com/xueqianlu/caddyproxy/caddy"
"github.com/xueqianlu/caddyproxy/types"
"github.com/xueqianlu/caddyproxy/utils"
"net/http"
"path/filepath"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment