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"
)
func main() {
ch := make(chan int , 1)
ch <- 10
View main.go
package main
import (
"fmt"
)
func main() {
ch := make(chan int)
ch <- 10
View main.go
package main
import (
"fmt"
"sync"
"time"
)
func WellCome1(s string, in chan int) {
for i := 0; i < 5; i++ {
View main.go
package main
import (
"fmt"
"sync"
"time"
)
func WellCome1(s string, in chan int) {
for i := 0; i < 5; i++ {
View main.go
package main
import (
"fmt"
"sync"
"time"
)
func WellCome1(s string) {
for i := 0; i < 5; i++ {
View main.go
package main
import (
"fmt"
"time"
)
func WellCome1(s string) {
for i := 0; i < 5; i++ {
fmt.Println(s, ":",i)
View main.go
package main
import (
"fmt"
)
func WellCome1(s string) {
for i := 0; i < 5; i++ {
fmt.Println(s, ":",i)
}
View main.go
package main
import (
"fmt"
)
type SalaryCalculator interface {
salaryCalculator() int
}
View main.go
package main
import (
"fmt"
)
type Do interface {
getName() string
getAge() int
}
View main.go
package main
import (
"fmt"
)
type Address struct {
address string
phone int
}
You can’t perform that action at this time.