Skip to content

Instantly share code, notes, and snippets.

View dharnnie's full-sized avatar
💭
Working on a private project on gitlab

Daniel Osineye dharnnie

💭
Working on a private project on gitlab
View GitHub Profile
package main
import "fmt"
type Perishable string
func main(){
tomatoes := newPerishable("Tomatoes")
fmt.Println("Before freezing: ",tomatoes)
frozen := tomatoes.freeze()
package main
import "fmt"
func main() {
card := newCard()
fmt.Println(card)
}
func newCard() string {
package main
import "fmt"
func main() {
var childrenNames [3]string
cards := []string{"Ace of Diamonds", newCard()}
cards = append(cards, "Six of Spades")
for i, card := range cards {
fmt.Println(i, card)
package main
import "fmt"
func main() {
var cardiB string = "Ace of Spades"
card := "Ace of Spades"
card = "Card of Diamonds"
fmt.Println(cardiB)
fmt.Println(card)
package main
func main(){
fmt.Println("Yo!")
}