1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 22:52:29 +08:00

doc: add play ground demo

This commit is contained in:
dudaodong
2023-10-08 11:19:44 +08:00
parent 56c9327a86
commit e25b53712b
11 changed files with 64 additions and 53 deletions

View File

@@ -627,7 +627,7 @@ func WriteBytesToFile(filepath string, content []byte) error {
}
// ReadFile get file reader by a url or a local file
// Play: todo
// Play: https://go.dev/play/p/uNep3Tr8fqF
func ReadFile(path string) (reader io.ReadCloser, closeFn func(), err error) {
switch {
case validator.IsUrl(path):