Also, using a simple template, you could do:
    
    
    import strutils
    
    template `<`(str: string, padding: int): string =
      str.alignLeft(padding)
    
    echo "This is a string:"<30, "Another String"
    
    
    Run

Reply via email to