forked from gitea/go-sdk
Lunny Xiao
38803cbe75
* refactor codes to remove structs and depend them on code.gitea.io/gitea/modules/structs * fix testing
16 lines
428 B
Go
16 lines
428 B
Go
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package gitea
|
|
|
|
import "code.gitea.io/gitea/modules/structs"
|
|
|
|
// ExtractKeysFromMapString provides a slice of keys from map
|
|
func ExtractKeysFromMapString(in map[string]structs.VisibleType) (keys []string) {
|
|
for k := range in {
|
|
keys = append(keys, k)
|
|
}
|
|
return
|
|
}
|