Created
          July 30, 2019 19:24 
        
      - 
      
- 
        Save rms1000watt/61dc5e1c957884c60d339761256d71fe to your computer and use it in GitHub Desktop. 
    Golang Remove all redundant whitespace inside string
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // https://stackoverflow.com/a/42251527 | |
| t := "hello world friends" | |
| t = strings.Join(strings.Fields(t), " ") | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment