summaryrefslogblamecommitdiffstats
path: root/lib/str.go
blob: e0cb8aea187a2c7cfc1ae4be644f71f3f06d82ca (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                    
// Copyright © 2020 rsiddharth <s@ricketyspace.net>
// SPDX-License-Identifier: ISC

package lib

func FillStr(a string, l int) string {
	b := ""
	if l < 1 {
		return b
	}
	for i := 0; i < l; i++ {
		b += a
	}
	return b
}