[golang] List the files with extension in a directory
폴더 내에 있는 특정 확장자 전체 출력하기 Usage : go run main.go [path] [ext] package main import ( "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" ) // https://gist.github.com/ivanzoid/129460aa08aff72862a534ebe0a9ae30#gistcomment-3733302 func fileNameWithoutExtension(fileName string) string { if pos := strings.LastIndexByte(fileName, '.'); pos != -1 { return fileName[:pos] } return fileName } func main() ..
개발/일상
2021. 5. 24. 17:43
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- cockroach db
- ad skip
- set value
- shared_from_this
- Golang
- 포맷해서 boost 새로 까는 김에
- Obstacle Avoidance
- red underline
- 잘못된 빨간줄
- SuffixArray
- 에러 위치 찾기
- 코어 남기기
- hole-punching
- Reciprocal n-body Collision Avoidance
- C++
- 면접
- Keyboard to Mouse Click
- Visual Studio
- 영상 픽셀화 하기
- 클래스 맴버 변수 출력하기
- RVO
- chrome-extension
- 카카오
- 봄날에 스케치
- 최솟값 찾기
- boost
- mysql
- print shared_ptr class member variable
- Quest2
- 로그인 과정에서 오류가 발생했습니다.
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함