18 lines
301 B
Go
18 lines
301 B
Go
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func (user *User) GetRemoteID() string {
|
||
|
if user == nil || !user.GMID.Valid() {
|
||
|
return ""
|
||
|
}
|
||
|
return user.GMID.String()
|
||
|
}
|
||
|
|
||
|
func (user *User) GetRemoteName() string {
|
||
|
if user == nil || !user.GMID.Valid() {
|
||
|
return ""
|
||
|
}
|
||
|
return fmt.Sprintf("+%s", user.GMID.String())
|
||
|
}
|