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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user