89382bddb0898900be935f169752c0b51323d8c8
init target and luns from config file
gotgt 
Simple Golang SCSI Target framework, this includes two binaries, one is citadm which is command line to config and control, the other is citd which is a target daemon.
Build
$ mkdir $GOPATH/src/github.com/gotstor/
$ cd $GOPATH/src/github.com/gostor/
$ git clone https://github.com/gostor/gotgt gotgt
$ cd gotgt
$ ./autogen.sh
$ ./configure
$ make
Test
You can test this with libiscsi.
build the test tool of libiscsi
$ git clone https://github.com/gostor/libiscsi
$ cd libiscsi
$ ./autogen.sh
$ ./configure
$ make
start the gotgt daemon
$ ./citd
begin the test
$ ./iscsi-test-cu -v iscsi://127.0.0.1:3260/iqn.test.haha/0
Description
Languages
Go
96.1%
Shell
3.5%
Dockerfile
0.2%
Makefile
0.2%