forked from crackcell/gonlpir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
util.go
34 lines (29 loc) · 819 Bytes
/
util.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***************************************************************
*
* Copyright (c) 2015, Menglong TAN <tanmenglong@gmail.com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GPL licence
*
**************************************************************/
/**
*
*
* @file util.go
* @author Menglong TAN <tanmenglong@gmail.com>
* @date Sun Mar 8 16:51:20 2015
*
**/
package gonlpir
//===================================================================
// Public APIs
//===================================================================
func BoolToInt(b bool) int {
if b {
return 1
}
return 0
}
//===================================================================
// Private
//===================================================================