Skip to content

Instantly share code, notes, and snippets.

Avatar

Trần Văn Luận luandevpro

View GitHub Profile
View main.go
package main
import (
"fmt"
)
type Address struct {
address string
phone int
}
View main.go
func (t Type) methodName(parameter list) {}
=> Type : receiver
methodName: name method
View main.go
package main
import (
"fmt"
)
type Address struct {
address string
phone int
}
View main.go
package main
import (
"fmt"
)
type Student struct {
Name string
Email string
Age int
View main.go
package main
import (
"fmt"
)
type Student struct {
Name string
Email string
Age int
View main.go
package main
import (
"fmt"
)
type Student struct {
string
int
}
View main.go
package main
import (
"fmt"
)
type Student struct {
name string
email string
age int
View main.go
package main
import (
"fmt"
)
func main() {
student := make(map[string]int)
student["tran"] = 25
View main.go
package main
import (
"fmt"
)
func main() {
student := make(map[string]int)
student["tran"] = 25
View main.go
package main
import (
"fmt"
)
func main() {
student := make(map[string]int)
student["tran"] = 25
You can’t perform that action at this time.