Commit Graph

17 Commits

Author SHA1 Message Date
Bo-Yi Wu acf41a9a1a
feat: enhance static file serving capabilities
- Add documentation for serving local files and embedded folders in README.md
- Add new example code for serving embedded folders in Go
- Create new `embed_folder.go` file with functions to serve embedded folders
- Create new `embed_folder_test.go` file with tests for serving embedded folders
- Add HTML template files for embedded server example
- Rename `static.go` to `local_file.go` and remove unused code
- Create new `local_file_test.go` file with tests for serving local files
- Create new `serve.go` file with middleware handler for serving static files
- Rename `static_test.go` to `serve_test.go` and refactor test functions
- Remove redundant test case `TestListIndex` from `serve_test.go`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-02-17 16:24:16 +08:00
ian lyons 8d999d68bd
Fix example link in README.md 2024-02-17 16:19:53 +08:00
Bo-Yi Wu 27e67fb73d
docs: add github actions badge
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-02-17 16:19:12 +08:00
Bo-Yi Wu d361912309
chore: fix lint
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2024-02-17 16:19:10 +08:00
Bo-Yi Wu 4cbe726267
chore: rename example to _example 2024-02-17 16:18:12 +08:00
ian lyons e87c665885
Fix example link in README.md 2022-08-23 17:23:00 -04:00
Bo-Yi Wu 8fc67cac55 docs: add github actions badge
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-10-02 21:10:58 +08:00
Bo-Yi Wu 268e78866a chore: fix lint
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-10-02 21:08:24 +08:00
Bo-Yi Wu 18020fa554 chore: rename example to _example 2021-04-04 06:07:43 +08:00
Valentin Omnès 5d1b16d05b doc: Update use embedmd (include file in .md) 2021-03-15 23:30:19 +01:00
Valentin Omnès 7e4680a8ef feat: Implement embed folder and a better organisation 2021-03-15 19:11:55 +01:00
Bo-Yi Wu 841376ca54 feat: add embedmd (#3) 2017-03-11 04:37:20 -06:00
Bo-Yi Wu 96b488d1c4 fix: replace gopkg with github. (#1) 2017-03-10 20:47:16 -06:00
Bo-Yi Wu 3375beb421 [ci skip] update readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-13 10:13:15 +08:00
Bo-Yi Wu cf788af04f add readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-13 10:10:13 +08:00
Bo-Yi Wu 7232ea358a initital.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-13 10:03:34 +08:00
Bo-Yi Wu b0491c78a9 Initial commit 2016-12-13 09:40:49 +08:00