Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        
                    | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                            Tags
                            
                        
                          
                          - go언어
 - Python
 - json
 - Golang
 - range
 - bitcoin
 - Close
 - install
 - c++
 - Linux
 - FOR
 - package
 - windows
 - 책
 - Callback
 - write
 - mutex
 - channel
 - window
 - JavaScript
 - C
 - http
 - Sync
 - 리뷰
 - GO 언어
 - File
 - tcp
 - 영화
 - go
 - API
 
                            Archives
                            
                        
                          
                          - Today
 
- Total
 
목록count (1)
Code Habit
      
      
        Golang ) 문자열 파싱하기
        
  
  
        
    
            
            
            
            
            
            
              
            
          golang에서는 다양한 문자열 관련 함수들을 제공한다. 그 중 문자열 파싱할 때 자주 사용하는 몇 가지 함수들만 알아보겠다. func Contains(s, substr string) bool : s 안에 substr 이 포함되어 있는지 검사 -> true : 포함, false : 불포함 func ContainsAny(s, chars string) bool : s 안에 chars의 문자가 포함되어 있는지 검사 -> true : 포함, false : 불포함 func Count(s, substr string) int : s안에 substr문자열이 몇번 나오는지 검사 -> 개수 리턴 func Index(s, substr string) int : s안에 substr 의 위치를 구함(첫글자). 리턴값이 -1이면 ..
        카테고리 없음
        
        2020. 6. 16. 07:53