1 Star 0 Fork 0

go-genie / packagesx

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
comments.go 888 Bytes
Copy Edit Raw Blame History
lijun authored 2024-02-19 17:10 . init: initialization project
// package
package main
import (
"fmt"
"time"
)
// type Date
type Date time.Time
const (
// a
A = "A" // A
// b
B = "B" // B
// c
C = "C" // C
)
// type Test
type Test struct {
// field String
String string
// field Int
Int int
// field Bool
Bool bool
// field Date
Date Date
}
// method
func (Test) Recv() {
}
// type Test2
type (
Test2 struct {
// field String
String string
// field Int
Int int
// field Bool
Bool bool
}
)
// var
var test = Test{
String: "",
Int: 1 + 1,
Bool: true,
}
// var
var (
// test2
test2 = Test{
String: "",
Int: 1,
Bool: true,
}
// test3
test3 = Test{
String: "",
Int: 1,
Bool: true,
}
)
//go:generate echo
// func Print
func Print(a string, b string) string {
return a + b
}
// func fn
func fn() {
// Call
res := Print("", "")
if res != "" {
// print
fmt.Println(res)
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go-genie/packagesx.git
git@gitee.com:go-genie/packagesx.git
go-genie
packagesx
packagesx
v1.0.1

Search