Skip to content

Latest commit

 

History

History
124 lines (98 loc) · 5.09 KB

go.md

File metadata and controls

124 lines (98 loc) · 5.09 KB

Go go

$ kurly -R -O -L http://../debian-8.7.1-amd64-netinst.iso

Demo: https://krypt.co/static/demo_final.mp4 image

class User
  def initialize(name, age)
    @name = name
    @age = age
  end

  def name
    @name
  end

  def age
    @age
  end

  def say_hi(user)
    puts(@name + " says hi to " + user.name)
  end

  def self.sum_age(user1, user2)
    user1.age + user2.age
  end
end

stan = User.new("Stan", 22)
john = User.new("John", 40)
puts(User.sum_age(stan, john)) #=> 62
stan.say_hi(john) #=> Stan says hi to John
package main

import (
	i "github.com/tockins/interact"
)

func main() {
	i.Run(&i.Interact{
		Questions: []*i.Question{
			{
				Quest: i.Quest{
					Msg:      "Would you like some coffee?",
				},
				Action: func(c i.Context) interface{} {
					val, err := c.Ans().Bool()
					if err != nil{
					    return err
					}
					fmt.Println(val)
					return nil
				},
			},
		},
	})
}

ctop provides a concise and condensed overview of real-time metrics for multiple containers:

Log,

Books