Add Script.Hash

This commit is contained in:
Vladimir Mihailenco 2017-05-24 15:24:47 +03:00
parent 18c1db9466
commit e3550dd65c
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ func NewScript(src string) *Script {
}
}
func (s *Script) Hash() string {
return s.hash
}
func (s *Script) Load(c scripter) *StringCmd {
return c.ScriptLoad(s.src)
}