doc: add play ground demo

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

No files matched your search

+1 -1
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):