mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-04-18 07:43:31 +00:00
unexport request, response methods
This commit is contained in:
@@ -12,10 +12,10 @@ func newResponse() response {
|
||||
return response{}
|
||||
}
|
||||
|
||||
func (r response) IsValid(buf []byte) bool {
|
||||
func (r response) isValid(buf []byte) bool {
|
||||
return len(buf) > len(responseHeader) && bytes.HasPrefix(buf, []byte(responseHeader))
|
||||
}
|
||||
|
||||
func (r response) Decode(buf []byte) string {
|
||||
func (r response) decode(buf []byte) string {
|
||||
return string(buf[len(responseHeader):])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user