]>
src.bluestatic.org Git - armadillo.git/blob - src/config.go
2 // Armadillo File Manager
3 // Copyright (c) 2010, Robert Sesek <http://www.bluestatic.org>
5 // This program is free software: you can redistribute it and/or modify it under
6 // the terms of the GNU General Public License as published by the Free Software
7 // Foundation, either version 3 of the License, or any later version.
17 type Configuration
struct {
21 Users
map [string] string
24 func ReadFromFile(aPath
string, config
*Configuration
) os
.Error
{
25 fd
, error
:= os
.Open(aPath
, os
.O_RDONLY
, 0)
29 decoder
:= json
.NewDecoder(fd
)
30 return decoder
.Decode(config
)