1 Star 0 Fork 0

成都趣趣网络/typescriptify-golang-structs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
utils.go 232 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tomo Krajina 提交于 2020-10-08 22:08 +08:00 . Simplificed conversion for arrays and maps
package typescriptify
import "strings"
func indentLines(str string, i int) string {
lines := strings.Split(str, "\n")
for n := range lines {
lines[n] = strings.Repeat("\t", i) + lines[n]
}
return strings.Join(lines, "\n")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/cdququ/typescriptify-golang-structs.git
git@gitee.com:cdququ/typescriptify-golang-structs.git
cdququ
typescriptify-golang-structs
typescriptify-golang-structs
v0.2.3

搜索帮助