blob: 7d65c44755915c32b896437ee4e4504aac2f2701 [file] [log] [blame] [edit]
// Copyright 2017 Marc-Antoine Ruel. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Package internal is for use for panic.
package internal
// Callback calls back a function through an external then internal function.
func Callback(f func()) {
callback(f)
}
func callback(f func()) {
f()
}