# go-embed **Repository Path**: feitian124/go-embed ## Basic Information - **Project Name**: go-embed - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-09 - **Last Updated**: 2021-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go-embed [english readme](README.md) 基于 Go 1.16 使用 Embed 嵌入 web 静态资源, 目录约定: ``` go-embed └── web -- 前端项目,这里使用 vitejs + vues ├── dist -- 生产环境打包目录 ├── ... ├── main.go -- 后端入口,这里使用 gin ├── ... ``` ## 参考 - [Go 1.16 使用 Embed 嵌入静态资源 | 视频文字稿](https://jishuin.proginn.com/p/763bfbd3aa2e) - [Embed a Javascript website inside a binary with Go 1.16](https://blog.lawrencejones.dev/golang-embed) - [Golang 1.16新特性-embed包及其使用](https://www.cnblogs.com/niuben/p/14461973.html) - [Embedding static files in a go binary using go embed](https://harsimranmaan.medium.com/embedding-static-files-in-a-go-binary-using-go-embed-bac505f3cb9a)