Пример #1
0
func GetAllRepos(w http.ResponseWriter, r *http.Request) {

	json.NewEncoder(w).Encode(database.GetAllRepositories())

}
Пример #2
0
func GetAllRepositoriesConfig() []database.Repository {
	/*var C database.Repositories
	viper.UnmarshalKey("repositories", &C)
	return C*/
	return database.GetAllRepositories()
}