24 lines
333 B
Go
24 lines
333 B
Go
//
|
|
// scan_helper_test.go
|
|
// Copyright (C) 2023 tiglog <me@tiglog.com>
|
|
//
|
|
// Distributed under terms of the MIT license.
|
|
//
|
|
|
|
package helper_test
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"git.hexq.cn/tiglog/golib/helper"
|
|
)
|
|
|
|
func TestScan(t *testing.T) {
|
|
var foo = []byte("hello")
|
|
var dest string
|
|
helper.Scan(foo, &dest)
|
|
fmt.Println(dest)
|
|
|
|
}
|