11.2.md 553 B

11.2 �ӿ�Ƕ�׽ӿ�

һ���ӿڿ��԰���һ�����������Ľӿڣ����൱��ֱ�ӽ���Щ��Ƕ�ӿڵķ����о������ӿ���һ����

����ӿ� File ������ ReadWrite �� Lock �����з���������������һ�� Close() ������

type ReadWrite interface {
    Read(b Buffer) bool
    Write(b Buffer) bool
}

type Lock interface {
    Lock()
    Unlock()
}

type File interface {
    ReadWrite
    Lock
    Close()
}