Created
December 22, 2018 06:14
-
-
Save syossan27/c116ddfa7fbfefdccb8dff55bbf0349b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (cs *Connections) Delete(name string) { | |
var newConns Connections | |
for _, conn := range *cs { | |
// 指定した接続情報を除外し、接続情報配列を組み立てる | |
if conn.Name != name { | |
newConns = append(newConns, conn) | |
} | |
} | |
save(&newConns) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment