mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #2255] [MERGED] Let's get rid of ugly statik #4537
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4537
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/2255
Author: @fakeboboliu
Created: 2/23/2021
Status: ✅ Merged
Merged: 8/17/2021
Merged by: @fatedier
Base:
dev← Head:dev📝 Commits (3)
f773f85Get rid of ugly statik2361d62remove statik totally58c2e16split go and static files in assets📊 Changes
12 files changed (+43 additions, -77 deletions)
View changed files
📝
Makefile(+0 -3)📝
assets/assets.go(+10 -39)➕
assets/frpc/embed.go(+14 -0)➖
assets/frpc/statik/statik.go(+0 -10)➕
assets/frps/embed.go(+14 -0)➖
assets/frps/statik/statik.go(+0 -10)📝
client/service.go(+2 -5)📝
cmd/frpc/main.go(+1 -1)📝
cmd/frps/main.go(+1 -1)📝
go.mod(+0 -1)📝
go.sum(+0 -2)📝
server/service.go(+1 -5)📄 Description
Intro
go1.16 introduced the embed package, it's the more graceful solution for embedding file into binary.
https://golang.org/pkg/embed/
Pros
(Even with upx packed)
Oh that's sweet, what's the cost?
Use go1.16, well i'm changed ci configurations already
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.