1 Star 0 Fork 0

aspnmy/i18n4go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.go 939 Bytes
一键复制 编辑 原始数据 按行查看 历史
package input_files
import (
"fmt"
"os"
"path/filepath"
)
type t struct {
myString string
}
func myPrint() {
println("isn't that grand")
}
func Something() string {
myPrint() // a trivial case
someString := "hello"
var anotherString string = "world"
println(someString, anotherString)
yetAnotherString := []string{"tricky tests"}
var moreStrings []string
moreStrings = []string{"are", "tricky"}
println(yetAnotherString, moreStrings)
mappyMap := map[string]string{"hello": "world"}
println(mappyMap)
println(mappyMap["hello"])
myT := t{myString: "my string"}
println(myT.myString)
trickyT := t{"this is a tricky case"}
println(trickyT.myString)
concatenatedStrings := "foo" + " " + "bar"
println(concatenatedStrings)
fmt.Printf("HAI")
if os.Getenv("SOMETHING") != "" {
fmt.Printf(filepath.Clean(os.Getenv("SOMETHING")))
}
fmt.Println("hello" + "world")
return "enqueuedequeueenqueuebananapants"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/Aodao/i18n4go.git
git@gitee.com:Aodao/i18n4go.git
Aodao
i18n4go
i18n4go
v0.2.0

搜索帮助

0d507c66 1850385 C8b1a773 1850385