Пример #1
0
//would want this to be a []byte or even a some sort of binary stream
func (c Connection) Put(data string) (string, error) {

	var uuid, _ = utils.GenerateV4String()
	err := storage.Store(uuid, data, c.filename)

	return uuid, err
}
Пример #2
0
func (c Connection) Post(uuid string, data string) error {

	storage.Store(uuid, data, c.filename)
	return nil
}