Bit1 检查字节中的某一位是否为1 |0|1|2|3|4|5|6|7|
(b byte, index int)
| 57 | |
| 58 | // Bit1 检查字节中的某一位是否为1 |0|1|2|3|4|5|6|7| |
| 59 | func Bit1(b byte, index int) bool { |
| 60 | return b&(1<<(7-index)) != 0 |
| 61 | } |
| 62 | |
| 63 | func WaitTerm(cancel context.CancelFunc) { |
| 64 | sigc := make(chan os.Signal, 1) |
no outgoing calls
no test coverage detected