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
# reference: https://cmake.org/cmake/help/latest/command/string.html | |
cmake_minimum_required (VERSION 2.8) | |
# Returns the compiler prefix | |
function(compiler_prefix input_string output_string) | |
string(REGEX MATCH "[^/]+$" compiler_basename ${input_string}) | |
string(REGEX MATCH "[^-]+$" compiler_id ${compiler_basename}) | |
if(NOT ${compiler_basename} STREQUAL ${compiler_id}) | |
string(REPLACE "-${compiler_id}" "" compiler_host ${compiler_basename}) | |
endif() |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
c := make(chan int) | |
go send(c) |
NewerOlder