Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- )
- type A struct {
- }
- func (a *A) Magic() {
- fmt.Println("Do magic")
- }
- func (a *A) AllWork() {
- fmt.Println("Lift some bricks")
- a.Magic()
- fmt.Println("Gently lay them down")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement