Go ReadDir()

1 개요[ | ]

Go ReadDir()
package main

import (
	"fmt"
	"log"
	"os"
)

func main() {
	entries, err := os.ReadDir("/")
	if err != nil {
		log.Fatal(err)
	}
	for _, e := range entries {
		fmt.Println(e.Name())
	}
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}