Skip to content

Instantly share code, notes, and snippets.

View luandevpro's full-sized avatar

Luận Trần luandevpro

View GitHub Profile
package main
import (
"fmt"
"sync"
"time"
)
func WellCome1(s string, in chan int) {
for i := 0; i < 5; i++ {
package main
import (
"fmt"
"sync"
"time"
)
func WellCome1(s string, in chan int) {
for i := 0; i < 5; i++ {
package main
import (
"fmt"
"sync"
"time"
)
func WellCome1(s string) {
for i := 0; i < 5; i++ {
package main
import (
"fmt"
"time"
)
func WellCome1(s string) {
for i := 0; i < 5; i++ {
fmt.Println(s, ":",i)
package main
import (
"fmt"
)
func WellCome1(s string) {
for i := 0; i < 5; i++ {
fmt.Println(s, ":",i)
}
package main
import (
"fmt"
)
type SalaryCalculator interface {
salaryCalculator() int
}
package main
import (
"fmt"
)
type Do interface {
getName() string
getAge() int
}
package main
import (
"fmt"
)
type Address struct {
address string
phone int
}
package main
import (
"fmt"
)
type Address struct {
address string
phone int
}
func (t Type) methodName(parameter list) {}
=> Type : receiver
methodName: name method