• Kirill Smelkov's avatar
    golang: Mark chan<T> IO methods as const · 3aca691e
    Kirill Smelkov authored
    chan<T> is a pointer type and e.g. send does not change the pointer - it
    only "modifies" channel buffer. Marking appropriate methods as const is
    needed so that `const chan<T>` could be used to send/receive the same
    way as `chan <T>` is used.
    3aca691e
libgolang.h 13.2 KB